aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hook.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hook.php')
-rw-r--r--lib/hook.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/hook.php b/lib/hook.php
index e30aefb5e18..554381251d6 100644
--- a/lib/hook.php
+++ b/lib/hook.php
@@ -33,8 +33,9 @@ class OC_Hook{
// Connect the hook handler to the requested emitter
self::$registered[$signalclass][$signalname][] = array(
- "class" => $slotclass,
- "name" => $slotname );
+ "class" => $slotclass,
+ "name" => $slotname
+ );
// No chance for failure ;-)
return true;
@@ -70,7 +71,9 @@ class OC_Hook{
try {
call_user_func( array( $i["class"], $i["name"] ), $params );
} catch (Exception $e){
- OC_Log::write('hook', 'error while running hook (' . $i["class"] . '::' . $i["name"] . '): '.$e->getMessage(), OC_Log::ERROR);
+ OC_Log::write('hook',
+ 'error while running hook (' . $i["class"] . '::' . $i["name"] . '): '.$e->getMessage(),
+ OC_Log::ERROR);
}
}