diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-18 17:25:44 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-18 17:25:44 +0200 |
commit | dfc92675e0d76ad9550a274b712e084e1738831c (patch) | |
tree | 2968019d4014778c6b886c329ce3dc73b1b2f02d /lib/helper.php | |
parent | eb29c577c2b2378c1983e55ddaf4955ad9ae7fe2 (diff) | |
download | nextcloud-server-dfc92675e0d76ad9550a274b712e084e1738831c.tar.gz nextcloud-server-dfc92675e0d76ad9550a274b712e084e1738831c.zip |
make menu work with movable apps
Diffstat (limited to 'lib/helper.php')
-rwxr-xr-x | lib/helper.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php index 61a57ec27e3..77b56051419 100755 --- a/lib/helper.php +++ b/lib/helper.php @@ -41,7 +41,11 @@ class OC_Helper { $app .= '/'; // Check if the app is in the app folder if( file_exists( OC::$APPSROOT . '/apps/'. $app.$file )){ - $urlLinkTo = OC::$APPSWEBROOT . '/apps/' . $app . $file; + if(substr($app, -1, 1) == '/'){ + $app = substr($app, 0, strlen($app) - 1); + } + $urlLinkTo = OC::$WEBROOT . '?app=' . $app; + $urlLinkTo .= ($file!='index.php')?'&file=' . $file:''; } else{ $urlLinkTo = OC::$WEBROOT . '/' . $app . $file; |