summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-28 21:30:06 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-28 21:30:06 +0200
commitfed34aecfa5b36c031ed754ed245549aa4a4194b (patch)
tree17ceb37b88ebf973529ba90a9115262ac8dab0d5
parent9c4c79346c9ccedc72998566911d1cd2a2e57b11 (diff)
downloadnextcloud-server-fed34aecfa5b36c031ed754ed245549aa4a4194b.tar.gz
nextcloud-server-fed34aecfa5b36c031ed754ed245549aa4a4194b.zip
Fix syntax error in removeETagHook
-rw-r--r--lib/filesystem.php10
1 files changed, 5 insertions, 5 deletions
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);
}