summaryrefslogtreecommitdiffstats
path: root/lib/private/templatelayout.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-03-30 15:58:20 +0200
committerLukas Reschke <lukas@owncloud.com>2015-04-03 13:21:24 +0200
commit0816cf91422346313d44cba5f017125899afbf2d (patch)
treea07e2b644f252896f9b271db31009b66f0d0f367 /lib/private/templatelayout.php
parenta2087f30d1c4b379b9a53a7ba8ef604038d2b8cb (diff)
downloadnextcloud-server-0816cf91422346313d44cba5f017125899afbf2d.tar.gz
nextcloud-server-0816cf91422346313d44cba5f017125899afbf2d.zip
Add experimental applications switch
Allows administrators to disable or enabled experimental applications as well as show the trust level.
Diffstat (limited to 'lib/private/templatelayout.php')
-rw-r--r--lib/private/templatelayout.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/templatelayout.php b/lib/private/templatelayout.php
index ee1412fba74..448276ca7fe 100644
--- a/lib/private/templatelayout.php
+++ b/lib/private/templatelayout.php
@@ -107,7 +107,7 @@ class OC_TemplateLayout extends OC_Template {
$userDisplayName = OC_User::getDisplayName();
$this->assign('user_displayname', $userDisplayName);
$this->assign('user_uid', OC_User::getUser());
- $this->assign('appsmanagement_active', strpos(\OC::$server->getRequest()->getRequestUri(), OC_Helper::linkToRoute('settings_apps')) === 0 );
+ $this->assign('appsmanagement_active', strpos(\OC::$server->getRequest()->getRequestUri(), \OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')) === 0 );
$this->assign('enableAvatars', $this->config->getSystemValue('enable_avatars', true));
$this->assign('userAvatarSet', \OC_Helper::userAvatarSet(OC_User::getUser()));
} else if ($renderAs == 'error') {