From 652f60419f9b4093bc8036f9be0eedaf1dd3804a Mon Sep 17 00:00:00 2001 From: Chris LeBlanc Date: Sat, 1 Feb 2014 00:56:55 -0600 Subject: Removed '/'. Fixes #7035. Not sure if that '/' is necessary but it broke things on my installation. --- remote.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'remote.php') diff --git a/remote.php b/remote.php index 2d0088cd903..fdbb796d917 100644 --- a/remote.php +++ b/remote.php @@ -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; } -- cgit v1.2.3 From 181bbd4325ea2b21ff8ecca93eb5ac839d6a739d Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 13 Feb 2014 16:28:49 +0100 Subject: Remove usage of legacy OC_Appconfig --- remote.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'remote.php') diff --git a/remote.php b/remote.php index 2d0088cd903..7884695b3a5 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); -- cgit v1.2.3 From d329049e5396cdbd488a9a6a93308d19484b97bd Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 20 Feb 2014 14:51:23 +0100 Subject: Remove no longer needed if statement --- remote.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'remote.php') diff --git a/remote.php b/remote.php index 8e7eaa7963b..9e18c8f80a9 100644 --- a/remote.php +++ b/remote.php @@ -32,11 +32,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.'/'; -- cgit v1.2.3