mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
backport from approved patch in stable45:
make root the default parameter for getAbsolutePath()
This commit is contained in:
parent
ba62d8dea7
commit
311b04f609
1 changed files with 1 additions and 4 deletions
|
|
@ -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 a new issue