don't run hooks for .part files
This commit is contained in:
parent
04e4d9580f
commit
690323092e
|
@ -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…
Reference in New Issue