Browse Source

Correct css file inclusion

tags/v4.5.0beta1
Brice Maron 12 years ago
parent
commit
6a250d0d20
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      lib/template.php

+ 8
- 2
lib/template.php View File

@@ -329,10 +329,16 @@ class OC_Template{
if (is_file($root.'/'.$file)) {
$pathes = explode('/', $file);
if($type == 'cssfiles' && $root == OC::$APPSROOTS[0] && $in_app){
$in_root = false;
foreach(OC::$APPSROOTS as $app_root) {
if($root == $app_root['path']) {
$in_root = true;
break;
}
}
if($type == 'cssfiles' && $in_root && $in_app){
$app = $pathes[0];
unset($pathes[0]);
// unset($pathes[1]);
$path = implode('/', $pathes);
$this->append( $type, OC_Helper::linkTo($app, $path));
}else{

Loading…
Cancel
Save