don't run hooks for .part files

This commit is contained in:
Björn Schießle 2013-07-01 17:00:17 +02:00
parent 04e4d9580f
commit 690323092e
1 changed files with 1 additions and 1 deletions

View File

@ -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(