From a15a99b304896a5f088f59df82581c781e879641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Wed, 7 Nov 2012 16:23:57 +0100 Subject: [PATCH] getAbsolutePath() always needs a parameter, added empty path as parameter to get the root path --- lib/filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filesystem.php b/lib/filesystem.php index f54cc6492e..172cc35c20 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -562,7 +562,7 @@ class OC_Filesystem{ if ($root) { // reduce path to the required part of it (no 'username/files') $fakeRootView = new OC_FilesystemView($root); $count = 1; - $path=str_replace(OC_App::getStorage("files")->getAbsolutePath(), "", $fakeRootView->getAbsolutePath($path), $count); + $path=str_replace(OC_App::getStorage("files")->getAbsolutePath(''), "", $fakeRootView->getAbsolutePath($path), $count); } $path = self::normalizePath($path);