|
|
|
|
@ -5,6 +5,8 @@ |
|
|
|
|
* slots and emitting signals. |
|
|
|
|
*/ |
|
|
|
|
class OC_Hook{ |
|
|
|
|
public static $thrownExceptions = []; |
|
|
|
|
|
|
|
|
|
static private $registered = array(); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
@ -77,6 +79,7 @@ class OC_Hook{ |
|
|
|
|
try { |
|
|
|
|
call_user_func( array( $i["class"], $i["name"] ), $params ); |
|
|
|
|
} catch (Exception $e){ |
|
|
|
|
self::$thrownExceptions[] = $e; |
|
|
|
|
OC_Log::write('hook', |
|
|
|
|
'error while running hook (' . $i["class"] . '::' . $i["name"] . '): '.$e->getMessage(), |
|
|
|
|
OC_Log::ERROR); |
|
|
|
|
|