summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-22 17:40:03 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-22 17:40:03 -0400
commit2944989d8a9a55b4da952820c356af8d17051093 (patch)
tree25db73888584e7ded9dddf4ee17581f599d55623 /lib
parenta73d8001007aa02e639f92ac4f28a949d5bbc892 (diff)
hide IM settings if xmpp disabled
darcs-hash:20080922214003-5ed1f-f183262f41a430710946470133f61694e322fcad.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/settingsaction.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/settingsaction.php b/lib/settingsaction.php
index cbdfcf10c..705ccf3eb 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],