summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-12 16:53:00 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-12 16:53:00 +0200
commit16dacba4900ce2bbb4f26040f6f5c2b698eae5da (patch)
tree06dc1a37a0653eef7f07f9a43b7f4a150972f4ab
parentdb4111f6d50d5bf2195d4a082ffc9dcea1d911ce (diff)
downloadnextcloud-server-16dacba4900ce2bbb4f26040f6f5c2b698eae5da.tar.gz
nextcloud-server-16dacba4900ce2bbb4f26040f6f5c2b698eae5da.zip
Routing: And start using them from php
-rw-r--r--lib/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 8c362747a27..3cdb3e53c22 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -42,8 +42,8 @@ class OC_Helper {
// Check if the app is in the app folder
if( $app_path && file_exists( $app_path.'/'.$file )){
if(substr($file, -3) == 'php' || substr($file, -3) == 'css'){
- $urlLinkTo = OC::$WEBROOT . '/?app=' . $app;
- $urlLinkTo .= ($file!='index.php')?'&getfile=' . urlencode($file):'';
+ $urlLinkTo = OC::$WEBROOT . '/index.php/apps/' . $app;
+ $urlLinkTo .= ($file!='index.php') ? '/' . $file : '';
}else{
$urlLinkTo = OC_App::getAppWebPath($app) . '/' . $file;
}