X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHooks.php;h=db47d3194eaf6fdc948496956613715290c62350;hb=ca209473d1e94196a8f9d454bb6f6ab40841f9c8;hp=396e360dd88456997275eb405aa3c9b0b2113d58;hpb=417e346059bac2c1a8f1fc1e2aad4dff2a6afd41;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Hooks.php b/includes/Hooks.php index 396e360dd8..db47d3194e 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -199,6 +199,9 @@ class Hooks { $retval = call_user_func_array( $callback, $hook_args ); } catch ( MWHookException $e ) { $badhookmsg = $e->getMessage(); + } catch ( Exception $e ) { + restore_error_handler(); + throw $e; } restore_error_handler(); wfProfileOut( $func );