From: Sarven Capadisli Date: Mon, 21 Dec 2009 15:09:12 +0000 (+0000) Subject: Added admin navigation item to MobileProfile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5472779240aad58b6fc841e2f15b63de8cfa14af;p=quix0rs-gnu-social.git Added admin navigation item to MobileProfile --- diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php index 35678bedd3..14d2500e8f 100644 --- a/plugins/MobileProfile/MobileProfilePlugin.php +++ b/plugins/MobileProfile/MobileProfilePlugin.php @@ -316,6 +316,10 @@ class MobileProfilePlugin extends WAP20Plugin $action->menuItem(common_local_url($connect), _('Connect')); } + if ($user->hasRight(Right::CONFIGURESITE)) { + $action->menuItem(common_local_url('siteadminpanel'), + _('Admin'), _('Change site configuration'), false, 'nav_admin'); + } if (common_config('invite', 'enabled')) { $action->menuItem(common_local_url('invite'), _('Invite'));