fix remote.php for our favorite OS - Windows

This commit is contained in:
Georg Ehrke 2012-10-08 21:28:21 +02:00
parent 06d00af9f8
commit a657bfa369
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,11 @@ switch ($app) {
default: default:
OC_Util::checkAppEnabled($app); OC_Util::checkAppEnabled($app);
OC_App::loadApp($app); OC_App::loadApp($app);
$file = '/' . OC_App::getAppPath($app) .'/'. $parts[1]; if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$file = OC_App::getAppPath($app) .'/'. $parts[1];
}else{
$file = '/' . OC_App::getAppPath($app) .'/'. $parts[1];
}
break; break;
} }
$baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/'; $baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/';