backport from approved patch in stable45:

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

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