Do not include non-required scripts on the upgrade page

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-12-15 21:14:07 +01:00
parent 2bedfbd4b0
commit a4b5312729
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class OC_Template extends \OC\Template\Base {
OC_Util::addStyle('server', null, true); OC_Util::addStyle('server', null, true);
OC_Util::addTranslations('core', null, true); OC_Util::addTranslations('core', null, true);
if (\OC::$server->getSystemConfig()->getValue('installed', false)) { if (\OC::$server->getSystemConfig()->getValue('installed', false) && !\OCP\Util::needUpgrade()) {
OC_Util::addScript('merged-template-prepend', null, true); OC_Util::addScript('merged-template-prepend', null, true);
OC_Util::addScript('dist/files_client', null, true); OC_Util::addScript('dist/files_client', null, true);
OC_Util::addScript('dist/files_fileinfo', null, true); OC_Util::addScript('dist/files_fileinfo', null, true);