hide IM settings if xmpp disabled

darcs-hash:20080922214003-5ed1f-f183262f41a430710946470133f61694e322fcad.gz
This commit is contained in:
Evan Prodromou 2008-09-22 17:40:03 -04:00
parent a73d800100
commit 2944989d8a

View File

@ -102,6 +102,10 @@ class SettingsAction extends Action {
$action = $this->trimmed('action');
common_element_start('ul', array('id' => 'nav_views'));
foreach ($menu as $menuaction => $menudesc) {
if ($menuaction == 'imsettings' &&
!common_config('xmpp', 'enabled')) {
continue;
}
common_menu_item(common_local_url($menuaction),
$menudesc[0],
$menudesc[1],