From: Bart Visscher Date: Fri, 28 Sep 2012 19:30:06 +0000 (+0200) Subject: Fix syntax error in removeETagHook X-Git-Tag: v4.5.0RC2~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fed34aecfa5b36c031ed754ed245549aa4a4194b;p=nextcloud-server.git Fix syntax error in removeETagHook --- diff --git a/lib/filesystem.php b/lib/filesystem.php index 5516aae3976..c6da826a339 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -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; + + 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); }