[Pkg-owncloud-commits] [owncloud] 09/58: fix check if hooks should be emited in runHooks

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 15:58:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.0.6
in repository owncloud.

commit a9a5ac2fd17a72ea87ed00d15131048ec1ebf607
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 ae1cb89..1ad59fd 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -909,10 +909,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