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/helper.php | |
parent | b75f680b8e560be82f5c63bfc5480452a3de12d9 (diff) | |
download | nextcloud-server-3f64eb25ab89964127681a52265207dbeb7e1e9b.tar.gz nextcloud-server-3f64eb25ab89964127681a52265207dbeb7e1e9b.zip |
some fixes fore movable apps
Diffstat (limited to 'lib/helper.php')
-rwxr-xr-x | lib/helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php index 2bc738e6650..a89aa4d37fc 100755 --- a/lib/helper.php +++ b/lib/helper.php @@ -41,11 +41,11 @@ class OC_Helper { $app .= '/'; // Check if the app is in the app folder if( file_exists( OC::$APPSROOT . '/apps/'. $app.$file )){ - if(substr($file, -3) == 'php'){ + if(substr($file, -3) == 'php' || substr($file, -3) == 'css'){ if(substr($app, -1, 1) == '/'){ $app = substr($app, 0, strlen($app) - 1); } - $urlLinkTo = OC::$APPSWEBROOT . '/?app=' . $app; + $urlLinkTo = OC::$WEBROOT . '/?app=' . $app; $urlLinkTo .= ($file!='index.php')?'&getfile=' . urlencode($file):''; }else{ $urlLinkTo = OC::$APPSWEBROOT . '/apps/' . $app . $file; |