dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure we always restore the error handler.
[lhc/web/wiklou.git]
/
includes
/
Hooks.php
diff --git
a/includes/Hooks.php
b/includes/Hooks.php
index
396e360
..
db47d31
100644
(file)
--- 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 );