]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added admin navigation item to MobileProfile
authorSarven Capadisli <csarven@status.net>
Mon, 21 Dec 2009 15:09:12 +0000 (15:09 +0000)
committerSarven Capadisli <csarven@status.net>
Mon, 21 Dec 2009 15:09:12 +0000 (15:09 +0000)
plugins/MobileProfile/MobileProfilePlugin.php

index 35678bedd3c0599d2d7d8007eadc96c98c2dde2d..14d2500e8fdc4859d880b46f2e24204ed3291355 100644 (file)
@@ -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'));