aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-05-15 17:25:11 +0200
committerBart Visscher <bartv@thisnet.nl>2012-05-16 18:53:46 +0200
commitc645a7d0f86baf2baf9777c9350c8cfd8a907084 (patch)
tree87f875c6cd4acdf542413915ca9c4a1a4304614f
parentce1e4425c2fc96f581428207edab040e42387bbc (diff)
downloadnextcloud-server-c645a7d0f86baf2baf9777c9350c8cfd8a907084.tar.gz
nextcloud-server-c645a7d0f86baf2baf9777c9350c8cfd8a907084.zip
Fix empty jsfiles and cssfiles in layout template
-rw-r--r--lib/template.php2
1 files changed, 2 insertions, 0 deletions
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')) {