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-07 01:11:15 +0400
committerBrice Maron <brice@bmaron.net>2012-06-07 01:11:15 +0400
commite8447e0bda25744c4836a8fdf009a98174264eda (patch)
tree5eb765f5cc62df8ba8ab3c68afb4eec220d1d435 /remote.php
parent5c2b2fc8425e7fa52945b53058ac67f67d228409 (diff)
Rework to fit with minizer
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php18
1 files changed, 13 insertions, 5 deletions
diff --git a/remote.php b/remote.php
index 55b088d775e..e1e11c5773f 100644
--- a/remote.php
+++ b/remote.php
@@ -17,9 +17,17 @@ if(is_null($file)){
exit;
}
-$parts=explode('/', $file, 2);
-$app=$parts[0];
-OC_App::loadApp($app);
+if(count(explode('/',$file)) == 3) {
+ $parts=explode('/',$file);
+ $app=$parts[2];
+ OC_App::loadApp($app);
+ $baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';
+ require_once( OC::$SERVERROOT.$file);
-$baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';
-require_once(OC_App::getAppPath($app) .'/'. $parts[1]); \ No newline at end of file
+} else {
+ $parts=explode('/', $file, 2);
+ $app=$parts[0];
+ OC_App::loadApp($app);
+ $baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';
+ require_once(OC_App::getAppPath($app) .'/'. $parts[1]);
+}