From 690323092ec23ce3c04591963d268bf14f0c411b Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Mon, 1 Jul 2013 17:00:17 +0200 Subject: don't run hooks for .part files --- lib/files/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/files') diff --git a/lib/files/view.php b/lib/files/view.php index f62b84d27aa..c9727fe4984 100644 --- a/lib/files/view.php +++ b/lib/files/view.php @@ -688,7 +688,7 @@ class View { private function runHooks($hooks, $path, $post = false) { $prefix = ($post) ? 'post_' : ''; $run = true; - if (Filesystem::$loaded and $this->fakeRoot == Filesystem::getRoot()) { + if (Filesystem::$loaded and $this->fakeRoot == Filesystem::getRoot() && !Cache\Scanner::isPartialFile($path)) { foreach ($hooks as $hook) { if ($hook != 'read') { \OC_Hook::emit( -- cgit v1.2.3