]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't try to add publictagcloud to menu if it's not there
authorEvan Prodromou <evan@status.net>
Tue, 20 Sep 2011 02:01:28 +0000 (22:01 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 20 Sep 2011 02:01:28 +0000 (22:01 -0400)
lib/publicgroupnav.php

index 2b9c418440e90faffd65a5f2f02ab1068ce69542..79190a11f05edb4c379e3419b1dc3dbffeb7b43d 100644 (file)
@@ -74,10 +74,12 @@ class PublicGroupNav extends Menu
                 // TRANS: Menu item title in search group navigation panel.
                 _('User groups'), $this->actionName == 'groups', 'nav_groups');
 
-            // TRANS: Menu item in search group navigation panel.
-            $this->out->menuItem(common_local_url('publictagcloud'), _m('MENU','Recent tags'),
-                // TRANS: Menu item title in search group navigation panel.
-                _('Recent tags'), $this->actionName == 'publictagcloud', 'nav_recent-tags');
+            if (!common_config('performance', 'high')) {
+                // TRANS: Menu item in search group navigation panel.
+                $this->out->menuItem(common_local_url('publictagcloud'), _m('MENU','Recent tags'),
+                                     // TRANS: Menu item title in search group navigation panel.
+                                     _('Recent tags'), $this->actionName == 'publictagcloud', 'nav_recent-tags');
+            }
 
             if (count(common_config('nickname', 'featured')) > 0) {
                 // TRANS: Menu item in search group navigation panel.