summaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote.php b/remote.php
index 2d0088cd903..8e7eaa7963b 100644
--- a/remote.php
+++ b/remote.php
@@ -14,7 +14,7 @@ try {
}
$service=substr($path_info, 1, $pos-1);
- $file = OC_AppConfig::getValue('core', 'remote_' . $service);
+ $file = \OC::$server->getAppConfig()->getValue('core', 'remote_' . $service);
if(is_null($file)) {
OC_Response::setStatus(OC_Response::STATUS_NOT_FOUND);
@@ -35,7 +35,7 @@ try {
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$file = OC_App::getAppPath($app) .'/'. $parts[1];
}else{
- $file = '/' . OC_App::getAppPath($app) .'/'. $parts[1];
+ $file = OC_App::getAppPath($app) .'/'. $parts[1];
}
break;
}