backport from approved patch in stable45:
make root the default parameter for getAbsolutePath()
This commit is contained in:
parent
ba62d8dea7
commit
311b04f609
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue