Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-06-05 00:37:00 +0400
committerBrice Maron <brice@bmaron.net>2012-06-07 00:24:15 +0400
commit6a812644e4d0f6eed8dca4e20c6f7135d881012a (patch)
tree546a05ff2314e3127c4b1010e9d8729c5e4e4ee8 /remote.php
parent6a250d0d20c92513a883a7103885712127b51cc8 (diff)
Correct remote and public, and last occurence of OC::
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/remote.php b/remote.php
index 7131dfc9407..55b088d775e 100644
--- a/remote.php
+++ b/remote.php
@@ -17,9 +17,9 @@ if(is_null($file)){
exit;
}
-$parts=explode('/',$file);
-$app=$parts[2];
+$parts=explode('/', $file, 2);
+$app=$parts[0];
OC_App::loadApp($app);
$baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';
-require_once(OC::$APPSROOT . $file); \ No newline at end of file
+require_once(OC_App::getAppPath($app) .'/'. $parts[1]); \ No newline at end of file