aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/route
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/route')
-rw-r--r--lib/private/route/router.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/route/router.php b/lib/private/route/router.php
index 25860ee46bf..4ca5e16ddf2 100644
--- a/lib/private/route/router.php
+++ b/lib/private/route/router.php
@@ -260,7 +260,7 @@ class Router implements IRouter {
$this->loadRoutes($app);
} else if (substr($url, 0, 6) === '/core/' or substr($url, 0, 10) === '/settings/') {
\OC::$REQUESTEDAPP = $url;
- if (!\OC_Config::getValue('maintenance', false) && !\OCP\Util::needUpgrade()) {
+ if (!\OC::$server->getConfig()->getSystemValue('maintenance', false) && !\OCP\Util::needUpgrade()) {
\OC_App::loadApps();
}
$this->loadRoutes('core');