From c8bfd8a559ba5241737357d1a52d31fac889cbed Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 18 Jan 2022 14:55:13 +0100 Subject: Load core before the update script Signed-off-by: Joas Schilling --- lib/base.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/base.php b/lib/base.php index 91544c949c2..0f08102c81f 100644 --- a/lib/base.php +++ b/lib/base.php @@ -365,7 +365,10 @@ class OC { $oldTheme = $systemConfig->getValue('theme'); $systemConfig->setValue('theme', ''); - OC_Util::addScript('update'); + OC_Util::addScript('core', 'common'); + OC_Util::addScript('core', 'main'); + OC_Util::addTranslations('core'); + OC_Util::addScript('update', null, 'core'); /** @var \OC\App\AppManager $appManager */ $appManager = \OC::$server->getAppManager(); -- cgit v1.2.3