Merge pull request #24714 from nextcloud/backport/24713/stable20
[stable20] Do not include non-required scripts on the upgrade page
This commit is contained in:
commit
6c8cd720b8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue