[Pkg-owncloud-commits] [owncloud] 52/394: getAbsolutePath() always needs a parameter, added empty path as parameter to get the root path

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:11:25 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit a15a99b304896a5f088f59df82581c781e879641
Author: Björn Schießle <schiessle at owncloud.com>
Date:   Wed Nov 7 16:23:57 2012 +0100

    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 f54cc64..172cc35 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list