aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Template.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/legacy/OC_Template.php')
-rw-r--r--lib/private/legacy/OC_Template.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/legacy/OC_Template.php b/lib/private/legacy/OC_Template.php
index 9dfdb87e5ee..61fc82dacbb 100644
--- a/lib/private/legacy/OC_Template.php
+++ b/lib/private/legacy/OC_Template.php
@@ -106,7 +106,7 @@ class OC_Template extends \OC\Template\Base {
//meaning the last script/style in this list will be loaded first
if (\OC::$server->getSystemConfig()->getValue('installed', false) && $renderAs !== TemplateResponse::RENDER_AS_ERROR && !\OCP\Util::needUpgrade()) {
if (\OC::$server->getConfig()->getAppValue('core', 'backgroundjobs_mode', 'ajax') == 'ajax') {
- OC_Util::addScript('backgroundjobs', null, true);
+ OC_Util::addScript('core', 'backgroundjobs', true);
}
}
OC_Util::addStyle('css-variables', null, true);
@@ -114,11 +114,11 @@ class OC_Template extends \OC\Template\Base {
OC_Util::addTranslations('core', null, true);
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);
+ OC_Util::addScript('core', 'merged-template-prepend', true);
+ OC_Util::addScript('core', 'files_client', true);
+ OC_Util::addScript('core', 'files_fileinfo', true);
}
- OC_Util::addScript('core', 'dist/main', true);
+ OC_Util::addScript('core', 'main', true);
self::$initTemplateEngineFirstRun = false;
}