Index: trunk/phase3/includes/Hooks.php |
— | — | @@ -222,9 +222,7 @@ |
223 | 223 | |
224 | 224 | /* String return is an error; false return means stop processing. */ |
225 | 225 | if ( is_string( $retval ) ) { |
226 | | - global $wgOut; |
227 | | - $wgOut->showFatalError( $retval ); |
228 | | - return false; |
| 226 | + throw new FatalError( $retval ); |
229 | 227 | } elseif( $retval === null ) { |
230 | 228 | if ( $closure ) { |
231 | 229 | $prettyFunc = "$event closure"; |