]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix syntax error in removeETagHook
authorBart Visscher <bartv@thisnet.nl>
Fri, 28 Sep 2012 19:30:06 +0000 (21:30 +0200)
committerBart Visscher <bartv@thisnet.nl>
Fri, 28 Sep 2012 19:30:06 +0000 (21:30 +0200)
lib/filesystem.php

index 5516aae397643ac7dd8084066ca2674ecb805c6f..c6da826a33942ff896ffbb93b50accfb519c3434 100644 (file)
@@ -527,13 +527,13 @@ class OC_Filesystem{
                } else {
                        $path=$params['oldpath'];
                }
-               
-               if (root) { // reduce path to the required part of it (no 'username/files')
-                       $fakeRootView = new OC_FilesystemView($root);                                   
-                       $count = 1;\r
+
+               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 = self::normalizePath($path);
                OC_Connector_Sabre_Node::removeETagPropertyForPath($path);
        }