don't run hooks for .part files

remotes/origin/stable6
Björn Schießle 13 years ago
parent 04e4d9580f
commit 690323092e
  1. 2
      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(

Loading…
Cancel
Save