diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-26 14:52:55 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-26 14:52:55 +0200 |
commit | 3f64eb25ab89964127681a52265207dbeb7e1e9b (patch) | |
tree | 183f713b4d443f77b5d5bd05350ce069eecb79f0 /lib/template.php | |
parent | b75f680b8e560be82f5c63bfc5480452a3de12d9 (diff) | |
download | nextcloud-server-3f64eb25ab89964127681a52265207dbeb7e1e9b.tar.gz nextcloud-server-3f64eb25ab89964127681a52265207dbeb7e1e9b.zip |
some fixes fore movable apps
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/template.php b/lib/template.php index eeba2410b68..eccf011e8d2 100644 --- a/lib/template.php +++ b/lib/template.php @@ -323,7 +323,16 @@ class OC_Template{ */ public function appendIfExist($type, $root, $web, $file) { if (is_file($root.'/'.$file)) { - $this->append( $type, $web.'/'.$file); + if($type == 'cssfiles' && $root == OC::$APPSROOT){ + $pathes = explode('/', $file); + $app = $pathes['1']; + unset($pathes['0']); + unset($pathes['1']); + $path = implode('/', $pathes); + $this->append( $type, OC_Helper::linkTo($app, $path)); + }else{ + $this->append( $type, $web.'/'.$file); + } return true; } return false; |