From 311b04f6098674897e78ff0223cacbbfe381d044 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= <schiessle@owncloud.com>
Date: Wed, 7 Nov 2012 16:53:56 +0100
Subject: [PATCH] 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 936e1feb41..ccaa040fe8 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;
 		}
-- 
GitLab