[Pkg-owncloud-commits] [owncloud] 03/205: fix check if hooks should be emited in runHooks
David Prévot
taffit at moszumanska.debian.org
Thu Jul 2 17:36:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 567df226e50d372374fa15297c457c7fb2ba3306
Author: Robin Appelman <icewind at owncloud.com>
Date: Mon Jun 15 15:07:48 2015 +0200
fix check if hooks should be emited in runHooks
---
lib/private/files/view.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index b47fa43..23988c8 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(
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list