From: Alexandre Emsenhuber Date: Wed, 9 Nov 2011 10:59:17 +0000 (+0000) Subject: Throw a FatalError exception instead of calling OutputPage::showFatalError() (on... X-Git-Tag: 1.31.0-rc.0~26625 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=4aa1b32903ad02338c39018314af9240545aaaad;p=lhc%2Fweb%2Fwiklou.git Throw a FatalError exception instead of calling OutputPage::showFatalError() (on usage of $wgOut less) --- diff --git a/includes/Hooks.php b/includes/Hooks.php index dd08d03bf5..bfec82e984 100644 --- 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";