]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not include non-required scripts on the upgrade page 24714/head
authorJulius Härtl <jus@bitgrid.net>
Tue, 15 Dec 2020 20:14:07 +0000 (21:14 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 15 Dec 2020 20:42:07 +0000 (20:42 +0000)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
lib/private/legacy/OC_Template.php

index 54c203a3ab61db464457c470da4daa44b4dec627..b752e0578699edaa646a3c3f6ce6d8d13b98db00 100644 (file)
@@ -114,7 +114,7 @@ class OC_Template extends \OC\Template\Base {
                        OC_Util::addStyle('server', 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('dist/files_client', null, true);
                                OC_Util::addScript('dist/files_fileinfo', null, true);