From 311b04f6098674897e78ff0223cacbbfe381d044 Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Wed, 7 Nov 2012 16:53:56 +0100 Subject: backport from approved patch in stable45: make root the default parameter for getAbsolutePath() --- lib/filesystemview.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/filesystemview.php b/lib/filesystemview.php index 936e1feb412..ccaa040fe88 100644 --- a/lib/filesystemview.php +++ b/lib/filesystemview.php @@ -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; } -- cgit v1.2.3