File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,11 @@ public static function initTemplateEngine($renderAs) {
113113 Util::addTranslations ('core ' );
114114
115115 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 ' );
116+ if ($ renderAs !== TemplateResponse::RENDER_AS_BLANK && $ renderAs !== TemplateResponse::RENDER_AS_BASE ) {
117+ Util::addScript ('core ' , 'files_fileinfo ' );
118+ Util::addScript ('core ' , 'files_client ' );
119+ Util::addScript ('core ' , 'merged-template-prepend ' );
120+ }
119121 }
120122
121123 // If installed and background job is set to ajax, add dedicated script
You can’t perform that action at this time.
0 commit comments