Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-06-15 16:07:48 +0300
committerRobin Appelman <icewind@owncloud.com>2015-06-29 15:13:19 +0300
commita9a5ac2fd17a72ea87ed00d15131048ec1ebf607 (patch)
treebe8ef5ae0f78119176ca09ffb8d2d30549f48c61 /lib
parent4e85a426a4af6f64292abf315aad8fc7a12b0cee (diff)
fix check if hooks should be emited in runHooks
Diffstat (limited to 'lib')
-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 ae1cb8913a5..1ad59fd9123 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(