don't try to add publictagcloud to menu if it's not there
This commit is contained in:
		@@ -74,10 +74,12 @@ class PublicGroupNav extends Menu
 | 
				
			|||||||
                // TRANS: Menu item title in search group navigation panel.
 | 
					                // TRANS: Menu item title in search group navigation panel.
 | 
				
			||||||
                _('User groups'), $this->actionName == 'groups', 'nav_groups');
 | 
					                _('User groups'), $this->actionName == 'groups', 'nav_groups');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if (!common_config('performance', 'high')) {
 | 
				
			||||||
                // TRANS: Menu item in search group navigation panel.
 | 
					                // TRANS: Menu item in search group navigation panel.
 | 
				
			||||||
                $this->out->menuItem(common_local_url('publictagcloud'), _m('MENU','Recent tags'),
 | 
					                $this->out->menuItem(common_local_url('publictagcloud'), _m('MENU','Recent tags'),
 | 
				
			||||||
                                     // TRANS: Menu item title in search group navigation panel.
 | 
					                                     // TRANS: Menu item title in search group navigation panel.
 | 
				
			||||||
                                     _('Recent tags'), $this->actionName == 'publictagcloud', 'nav_recent-tags');
 | 
					                                     _('Recent tags'), $this->actionName == 'publictagcloud', 'nav_recent-tags');
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (count(common_config('nickname', 'featured')) > 0) {
 | 
					            if (count(common_config('nickname', 'featured')) > 0) {
 | 
				
			||||||
                // TRANS: Menu item in search group navigation panel.
 | 
					                // TRANS: Menu item in search group navigation panel.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user