Skip to content
Snippets Groups Projects
Commit 6a250d0d authored by Brice Maron's avatar Brice Maron
Browse files

Correct css file inclusion

parent cc494259
Branches
No related tags found
No related merge requests found
...@@ -329,10 +329,16 @@ class OC_Template{ ...@@ -329,10 +329,16 @@ class OC_Template{
if (is_file($root.'/'.$file)) { if (is_file($root.'/'.$file)) {
$pathes = explode('/', $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]; $app = $pathes[0];
unset($pathes[0]); unset($pathes[0]);
// unset($pathes[1]);
$path = implode('/', $pathes); $path = implode('/', $pathes);
$this->append( $type, OC_Helper::linkTo($app, $path)); $this->append( $type, OC_Helper::linkTo($app, $path));
}else{ }else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment