1
0
miroir de https://github.com/nextcloud/server.git synchronisé 2024-08-11 14:10:55 +02:00

Correct css file inclusion

Cette révision appartient à :
Brice Maron 2012-06-04 19:52:44 +00:00
Parent cc494259d3
révision 6a250d0d20

Voir le fichier

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