From: Bart Visscher Date: Tue, 15 May 2012 15:25:11 +0000 (+0200) Subject: Fix empty jsfiles and cssfiles in layout template X-Git-Tag: v4.5.0beta1~74^2~424^2~30^2~4^2~1^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c645a7d0f86baf2baf9777c9350c8cfd8a907084;p=nextcloud-server.git Fix empty jsfiles and cssfiles in layout template --- diff --git a/lib/template.php b/lib/template.php index 641c441c740..b5805f0096c 100644 --- a/lib/template.php +++ b/lib/template.php @@ -378,6 +378,7 @@ class OC_Template{ // Read the detected formfactor and use the right file name. $fext = self::getFormFactorExtension(); + $page->assign('jsfiles', array()); // Add the core js files or the js files provided by the selected theme foreach(OC_Util::$scripts as $script){ // Is it in 3rd party? @@ -414,6 +415,7 @@ class OC_Template{ } } // Add the css files + $page->assign('cssfiles', array()); foreach(OC_Util::$styles as $style){ // is it in 3rdparty? if($page->appendIfExist('cssfiles', OC::$THIRDPARTYROOT, OC::$THIRDPARTYWEBROOT, $style.'.css')) {