|
|
@ -323,11 +323,11 @@ class OC_Template{ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function appendIfExist($type, $root, $web, $file) { |
|
|
|
public function appendIfExist($type, $root, $web, $file) { |
|
|
|
if (is_file($root.'/'.$file)) { |
|
|
|
if (is_file($root.'/'.$file)) { |
|
|
|
if($type == 'cssfiles' && $root == OC::$APPSROOT){ |
|
|
|
|
|
|
|
$pathes = explode('/', $file); |
|
|
|
$pathes = explode('/', $file); |
|
|
|
$app = $pathes['1']; |
|
|
|
if($type == 'cssfiles' && $root == OC::$APPSROOT && $pathes[0] == 'apps'){ |
|
|
|
unset($pathes['0']); |
|
|
|
$app = $pathes[1]; |
|
|
|
unset($pathes['1']); |
|
|
|
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{ |
|
|
|