summaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/remote.php b/remote.php
index d25bbdb6e7e..15dfa8256ff 100644
--- a/remote.php
+++ b/remote.php
@@ -13,7 +13,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);
@@ -31,11 +31,7 @@ try {
default:
OC_Util::checkAppEnabled($app);
OC_App::loadApp($app);
- 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;
}
$baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';