]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/publicgroupnav.php
Trac #894 and #1013 - fixed bad redirects after delete notice
[quix0rs-gnu-social.git] / lib / publicgroupnav.php
index 5ac4c0e120a938c9d1fdd29820e5c05690c59c7e..d72475e20276c8747b81ba77c693f43160bef96a 100644 (file)
@@ -69,21 +69,26 @@ class PublicGroupNav extends Widget
 
     function show()
     {
+        $action_name = $this->action->trimmed('action');
+
         $this->action->elementStart('ul', array('class' => 'nav'));
 
         $this->out->menuItem(common_local_url('public'), _('Public'),
-            _('Public timeline'), $this->action == 'public', 'nav_timeline_public');
+            _('Public timeline'), $action_name == 'public', 'nav_timeline_public');
+
+        $this->out->menuItem(common_local_url('groups'), _('Groups'),
+            _('User groups'), $action_name == 'groups', 'nav_groups');
 
-        $this->out->menuItem(common_local_url('tag'), _('Recent tags'),
-            _('Recent tags'), $this->action == 'tag', 'nav_recent-tags');
+        $this->out->menuItem(common_local_url('publictagcloud'), _('Recent tags'),
+            _('Recent tags'), $action_name == 'publictagcloud', 'nav_recent-tags');
 
         if (count(common_config('nickname', 'featured')) > 0) {
             $this->out->menuItem(common_local_url('featured'), _('Featured'),
-                _('Featured users'), $this->action == 'featured', 'nav_featured');
+                _('Featured users'), $action_name == 'featured', 'nav_featured');
         }
 
         $this->out->menuItem(common_local_url('favorited'), _('Popular'),
-            _("Popular notices"), $this->action == 'favorited', 'nav_timeline_favorited');
+            _("Popular notices"), $action_name == 'favorited', 'nav_timeline_favorited');
 
         $this->action->elementEnd('ul');
     }