aboutsummaryrefslogtreecommitdiffstats
path: root/public.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-01-20 21:55:16 +0100
committerMorris Jobke <hey@morrisjobke.de>2021-01-20 21:55:16 +0100
commitd84e1f1951ac593db4cf2d3da5d8dbe5fdccc26d (patch)
tree70e023c63486c3cc20aa1ae746c8574abd841fa2 /public.php
parent4c81f5c4ad3942cd8f4b8e9e67b956c0181ac435 (diff)
downloadnextcloud-server-d84e1f1951ac593db4cf2d3da5d8dbe5fdccc26d.tar.gz
nextcloud-server-d84e1f1951ac593db4cf2d3da5d8dbe5fdccc26d.zip
Re-use fetched dependencies in lib/base.php
Reduces calls to DI container by reusing already fetched dependencies. For status.php it went from 355 to 344. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'public.php')
-rw-r--r--public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/public.php b/public.php
index 2bcf8cf1b4a..b8701c0c0f2 100644
--- a/public.php
+++ b/public.php
@@ -42,7 +42,7 @@ try {
exit;
}
- OC::checkMaintenanceMode();
+ OC::checkMaintenanceMode(\OC::$server->get(\OC\SystemConfig::class));
$request = \OC::$server->getRequest();
$pathInfo = $request->getPathInfo();