We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aff3740 commit 155ad43Copy full SHA for 155ad43
1 file changed
lib/private/legacy/OC_Template.php
@@ -113,9 +113,11 @@ public static function initTemplateEngine($renderAs) {
113
Util::addTranslations('core');
114
115
if (\OC::$server->getSystemConfig()->getValue('installed', false) && !\OCP\Util::needUpgrade()) {
116
- Util::addScript('core', 'files_fileinfo');
117
- Util::addScript('core', 'files_client');
118
- Util::addScript('core', 'merged-template-prepend');
+ if ($renderAs !== TemplateResponse::RENDER_AS_BLANK && $renderAs !== TemplateResponse::RENDER_AS_BASE) {
+ Util::addScript('core', 'files_fileinfo');
+ Util::addScript('core', 'files_client');
119
+ Util::addScript('core', 'merged-template-prepend');
120
+ }
121
}
122
123
// If installed and background job is set to ajax, add dedicated script
0 commit comments