Fix empty jsfiles and cssfiles in layout template

This commit is contained in:
Bart Visscher 2012-05-15 17:25:11 +02:00
parent ce1e4425c2
commit c645a7d0f8

View file

@ -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')) {