]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
trac #1099: main menu should not lead to IM settings when IM is disabled
authorRobin Millette <millette@controlyourself.ca>
Mon, 2 Feb 2009 20:20:21 +0000 (20:20 +0000)
committerRobin Millette <millette@plantard.controlezvous.ca>
Mon, 2 Feb 2009 20:20:21 +0000 (20:20 +0000)
lib/action.php

index 8f02b36bf5aab5e58f52ec6266fe83e35de8696c..dcd24fb606b56120be1a1f48f3e3504936d4d08f 100644 (file)
@@ -326,8 +326,14 @@ class Action extends HTMLOutputter // lawsuit
         if ($user) {
             $this->menuItem(common_local_url('profilesettings'),
                             _('Account'), _('Change your email, avatar, password, profile'), false, 'nav_account');
-            $this->menuItem(common_local_url('imsettings'),
+
+            if (common_config('xmpp', 'enabled')) {
+                $this->menuItem(common_local_url('imsettings'),
                             _('Connect'), _('Connect to IM, SMS, Twitter'), false, 'nav_connect');
+            } else {
+                $this->menuItem(common_local_url('smssettings'),
+                            _('Connect'), _('Connect to SMS, Twitter'), false, 'nav_connect');
+            }
             $this->menuItem(common_local_url('logout'),
                             _('Logout'), _('Logout from the site'), false, 'nav_logout');
         } else {