]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Show network public feed link in PublicGroupNav
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 3 Jun 2015 22:53:35 +0000 (00:53 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 3 Jun 2015 22:53:35 +0000 (00:53 +0200)
lib/publicgroupnav.php

index 69347bc0d4970ff99da8c5d2df9881b459496f81..1c9d013293aa8dbe02ce1bb4aff6aa04110f18cc 100644 (file)
@@ -64,6 +64,12 @@ class PublicGroupNav extends Menu
                                      // TRANS: Menu item title in search group navigation panel.
                                      _('Public timeline'), $this->actionName == 'public', 'nav_timeline_public');
             }
+            if (!$this->scoped instanceof Profile && common_config('public', 'localonly')) {
+                // TRANS: Menu item in search group navigation panel.
+                $this->out->menuItem(common_local_url('networkpublic'), _m('MENU','Network'),
+                                     // TRANS: Menu item title in search group navigation panel.
+                                     _('Network public timeline'), $this->actionName == 'networkpublic', 'nav_timeline_networkpublic');
+            }
 
             // TRANS: Menu item in search group navigation panel.
             $this->out->menuItem(common_local_url('groups'), _m('MENU','Groups'),