dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3c0084
)
Throw a FatalError exception instead of calling OutputPage::showFatalError() (on...
author
Alexandre Emsenhuber
<ialex@users.mediawiki.org>
Wed, 9 Nov 2011 10:59:17 +0000
(10:59 +0000)
committer
Alexandre Emsenhuber
<ialex@users.mediawiki.org>
Wed, 9 Nov 2011 10:59:17 +0000
(10:59 +0000)
includes/Hooks.php
patch
|
blob
|
history
diff --git
a/includes/Hooks.php
b/includes/Hooks.php
index
dd08d03
..
bfec82e
100644
(file)
--- a/
includes/Hooks.php
+++ b/
includes/Hooks.php
@@
-222,9
+222,7
@@
class Hooks {
/* String return is an error; false return means stop processing. */
if ( is_string( $retval ) ) {
- global $wgOut;
- $wgOut->showFatalError( $retval );
- return false;
+ throw new FatalError( $retval );
} elseif( $retval === null ) {
if ( $closure ) {
$prettyFunc = "$event closure";