diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-11 14:20:30 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-03-11 14:20:30 +0100 |
commit | 5a574737ada72f95a6d3a523f5f14f1d99c55f4e (patch) | |
tree | cc1aa36499b3ffe91b62b98738a3c853bf2a5922 /lib/private | |
parent | 02f898fa075168c53e919157ce22e0b745a943d2 (diff) | |
download | nextcloud-server-5a574737ada72f95a6d3a523f5f14f1d99c55f4e.tar.gz nextcloud-server-5a574737ada72f95a6d3a523f5f14f1d99c55f4e.zip |
Only load required scripts on install page
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/legacy/template.php | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/private/legacy/template.php b/lib/private/legacy/template.php index 757bf998d32..ed1e5627961 100644 --- a/lib/private/legacy/template.php +++ b/lib/private/legacy/template.php @@ -109,16 +109,18 @@ class OC_Template extends \OC\Template\Base { OC_Util::addScript ( 'backgroundjobs', null, true ); } } - OC_Util::addStyle('css-variables', null, true); OC_Util::addStyle('server', null, true); - OC_Util::addTranslations("core", null, true); - OC_Util::addStyle('search', 'results'); - OC_Util::addScript('search', 'search', true); - OC_Util::addScript('search', 'searchprovider'); - OC_Util::addScript('merged-template-prepend', null, true); - OC_Util::addScript('files/fileinfo'); - OC_Util::addScript('files/client'); + OC_Util::addTranslations('core', null, true); + + if (\OC::$server->getSystemConfig()->getValue ('installed', false)) { + OC_Util::addStyle('search', 'results'); + OC_Util::addScript('search', 'search', true); + OC_Util::addScript('search', 'searchprovider'); + OC_Util::addScript('merged-template-prepend', null, true); + OC_Util::addScript('files/fileinfo'); + OC_Util::addScript('files/client'); + } OC_Util::addScript('core', 'dist/main', true); if (\OC::$server->getRequest()->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE])) { |