backport from approved patch in stable45:

make root the default parameter for getAbsolutePath()
This commit is contained in:
Björn Schießle 2012-11-07 16:53:56 +01:00
parent ba62d8dea7
commit 311b04f609
1 changed files with 1 additions and 4 deletions

View File

@ -47,10 +47,7 @@ class OC_FilesystemView {
$this->fakeRoot=$root;
}
public function getAbsolutePath($path) {
if(!$path) {
$path='/';
}
public function getAbsolutePath($path = '/') {
if($path[0]!=='/') {
$path='/'.$path;
}