]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix bug #1977: remove etags from database after version rollback so that the client...
authorBjörn Schießle <schiessle@owncloud.com>
Fri, 12 Oct 2012 15:37:59 +0000 (17:37 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Fri, 12 Oct 2012 15:37:59 +0000 (17:37 +0200)
lib/filesystem.php

index 6dbfc6a9bf49b0c8e20c5cd7aba1bfd33120dc84..da524d7f181a82c6f93335abcd1a569f4e42fbb3 100644 (file)
@@ -531,7 +531,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($path), "", $fakeRootView->getAbsolutePath($path), $count);
+                       $path=str_replace(OC_App::getStorage("files")->getAbsolutePath(), "", $fakeRootView->getAbsolutePath($path), $count);
                }
 
                $path = self::normalizePath($path);