From c645a7d0f86baf2baf9777c9350c8cfd8a907084 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Tue, 15 May 2012 17:25:11 +0200 Subject: [PATCH] Fix empty jsfiles and cssfiles in layout template --- lib/template.php | 2 ++ 1 file changed, 2 insertions(+) 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')) { -- 2.39.5