]> source.dussan.org Git - nextcloud-server.git/commitdiff
getAbsolutePath() always needs a parameter, added empty path as parameter to get...
authorBjörn Schießle <schiessle@owncloud.com>
Wed, 7 Nov 2012 15:23:57 +0000 (16:23 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Wed, 7 Nov 2012 15:23:57 +0000 (16:23 +0100)
lib/filesystem.php

index f54cc6492e7e42dc52563366e16f34c6005baa01..172cc35c20cc20468ae274620b2b81c78d439861 100644 (file)
@@ -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);