summaryrefslogtreecommitdiffstats
path: root/lib/private/files/view.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-06-15 15:07:48 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-15 15:07:48 +0200
commit567df226e50d372374fa15297c457c7fb2ba3306 (patch)
treeda54c3b64d10564fca04f27e2cf60e0e3beb9a5b /lib/private/files/view.php
parent4b48dd424f37446dd78f4589d2474fbe47097b1f (diff)
downloadnextcloud-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.php3
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(