From d84e1f1951ac593db4cf2d3da5d8dbe5fdccc26d Mon Sep 17 00:00:00 2001
From: Morris Jobke <hey@morrisjobke.de>
Date: Wed, 20 Jan 2021 21:55:16 +0100
Subject: 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>
---
 public.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'public.php')

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();
 
-- 
cgit v1.2.3