summaryrefslogtreecommitdiff
path: root/plugins/MobileProfile
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-03-03 10:19:14 -0800
committerZach Copley <zach@status.net>2010-03-03 10:19:14 -0800
commit61ada4558d69901c71b6542c16d43b5ea75ea3b3 (patch)
treeae82d976102aed9835c8e3ab2d9666e056d9e5bd /plugins/MobileProfile
parentf3cea2430497e751bc7776fe3abf0603e2b55f8b (diff)
Fix for disappearing 'connect' menu if xmpp and sms are disabled.
All 'connect' menu panels used to be optional, so Action tried to figure out what the first item on the 'connect' menu should be. This is no longer necessary because we have the non-optional OAuth client connections panel now, which is not optional and can't be turned off.
Diffstat (limited to 'plugins/MobileProfile')
-rw-r--r--plugins/MobileProfile/MobileProfilePlugin.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php
index f788639ae..0b37734b7 100644
--- a/plugins/MobileProfile/MobileProfilePlugin.php
+++ b/plugins/MobileProfile/MobileProfilePlugin.php
@@ -307,23 +307,14 @@ class MobileProfilePlugin extends WAP20Plugin
function _showPrimaryNav($action)
{
$user = common_current_user();
- $connect = '';
- if (common_config('xmpp', 'enabled')) {
- $connect = 'imsettings';
- } else if (common_config('sms', 'enabled')) {
- $connect = 'smssettings';
- }
-
$action->elementStart('ul', array('id' => 'site_nav_global_primary'));
if ($user) {
$action->menuItem(common_local_url('all', array('nickname' => $user->nickname)),
_('Home'));
$action->menuItem(common_local_url('profilesettings'),
_('Account'));
- if ($connect) {
- $action->menuItem(common_local_url($connect),
+ $action->menuItem(common_local_url('oauthconnectionssettings'),
_('Connect'));
- }
if ($user->hasRight(Right::CONFIGURESITE)) {
$action->menuItem(common_local_url('siteadminpanel'),
_('Admin'), _('Change site configuration'), false, 'nav_admin');