summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/util.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-27 13:43:18 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-07-27 13:43:18 +0200
commitc27498db7103aebac323c361007e0d8a2da16a34 (patch)
treecfe7bbb7b4abb89936ba9d35a70ef4f50d0c9213 /lib/private/legacy/util.php
parent65ade4b6d5a942ff781dad5396387facc86a95ed (diff)
downloadnextcloud-server-c27498db7103aebac323c361007e0d8a2da16a34.tar.gz
nextcloud-server-c27498db7103aebac323c361007e0d8a2da16a34.zip
Use IConfig instead of static OCP\Config
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/legacy/util.php')
-rw-r--r--lib/private/legacy/util.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index 18ba44ac204..8fc880667e4 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -1081,7 +1081,8 @@ class OC_Util {
$location = $urlGenerator->getAbsoluteURL($defaultPage);
} else {
$appId = 'files';
- $defaultApps = explode(',', \OCP\Config::getSystemValue('defaultapp', 'files'));
+ $config = \OC::$server->getConfig();
+ $defaultApps = explode(',', $config->getSystemValue('defaultapp', 'files'));
// find the first app that is enabled for the current user
foreach ($defaultApps as $defaultApp) {
$defaultApp = OC_App::cleanAppId(strip_tags($defaultApp));
@@ -1091,7 +1092,7 @@ class OC_Util {
}
}
- if(\OC::$server->getConfig()->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true') {
+ if($config->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true') {
$location = $urlGenerator->getAbsoluteURL('/apps/' . $appId . '/');
} else {
$location = $urlGenerator->getAbsoluteURL('/index.php/apps/' . $appId . '/');