From 2944989d8a9a55b4da952820c356af8d17051093 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 22 Sep 2008 17:40:03 -0400 Subject: [PATCH] hide IM settings if xmpp disabled darcs-hash:20080922214003-5ed1f-f183262f41a430710946470133f61694e322fcad.gz --- lib/settingsaction.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/settingsaction.php b/lib/settingsaction.php index cbdfcf10c6..705ccf3eb6 100644 --- a/lib/settingsaction.php +++ b/lib/settingsaction.php @@ -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],