Merge pull request #30733 from nextcloud/bugfix/noid/fix-update-button

Load core before the update script
pull/30745/head
Vincent Petry 2022-01-18 16:28:49 +07:00 committed by GitHub
commit d6716ccb21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

@ -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();