diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-06-15 15:07:48 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-06-15 15:07:48 +0200 |
commit | 567df226e50d372374fa15297c457c7fb2ba3306 (patch) | |
tree | da54c3b64d10564fca04f27e2cf60e0e3beb9a5b /lib/private/files/view.php | |
parent | 4b48dd424f37446dd78f4589d2474fbe47097b1f (diff) | |
download | nextcloud-server-567df226e50d372374fa15297c457c7fb2ba3306.tar.gz nextcloud-server-567df226e50d372374fa15297c457c7fb2ba3306.zip |
fix check if hooks should be emited in runHooks
Diffstat (limited to 'lib/private/files/view.php')
-rw-r--r-- | lib/private/files/view.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index b47fa4359f4..23988c8968a 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -1074,10 +1074,11 @@ class View { * @return bool */ private function runHooks($hooks, $path, $post = false) { + $relativePath = $path; $path = $this->getHookPath($path); $prefix = ($post) ? 'post_' : ''; $run = true; - if ($this->shouldEmitHooks($path)) { + if ($this->shouldEmitHooks($relativePath)) { foreach ($hooks as $hook) { if ($hook != 'read') { \OC_Hook::emit( |