summaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/remote.php b/remote.php
index e93c2bf5c84..44b85f762f5 100644
--- a/remote.php
+++ b/remote.php
@@ -1,6 +1,6 @@
<?php
$RUNTIME_NOSETUPFS = true;
-//$RUNTIME_NOAPPS = TRUE;
+$RUNTIME_NOAPPS = TRUE;
require_once('lib/base.php');
if (array_key_exists('PATH_INFO', $_SERVER)){
$path_info = $_SERVER['PATH_INFO'];
@@ -16,5 +16,10 @@ if(is_null($file)){
header('HTTP/1.0 404 Not Found');
exit;
}
+
+$parts=explode('/',$file);
+$app=$parts[2];
+OC_App::loadApp($app);
+
$baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';
require_once(OC::$APPSROOT . $file); \ No newline at end of file