summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-12-15 21:14:07 +0100
committerJulius Härtl <jus@bitgrid.net>2020-12-15 21:14:07 +0100
commita4b53127291f1353acadfecbc35c7f04e0533ea2 (patch)
treebd400fa92ce741f9d714ff1224e20a1dbb572a90 /lib
parent2bedfbd4b039de6a9155eb2e7f9160d24236ec0f (diff)
downloadnextcloud-server-a4b53127291f1353acadfecbc35c7f04e0533ea2.tar.gz
nextcloud-server-a4b53127291f1353acadfecbc35c7f04e0533ea2.zip
Do not include non-required scripts on the upgrade page
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/OC_Template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Template.php b/lib/private/legacy/OC_Template.php
index 2ddb55096ad..c3a7af4b202 100644
--- a/lib/private/legacy/OC_Template.php
+++ b/lib/private/legacy/OC_Template.php
@@ -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);