$wgOut->redirect( '' );
$wgOut->clearHTML();
- if ( $hookResult = $this->runHooks( get_class( $this ) ) ) {
+ $hookResult = $this->runHooks( get_class( $this ) );
+ if ( $hookResult ) {
$wgOut->addHTML( $hookResult );
} else {
$wgOut->addHTML( $this->getHTML() );
$wgOut->output();
} else {
- if ( $hookResult = $this->runHooks( get_class( $this ) . "Raw" ) ) {
+ $hookResult = $this->runHooks( get_class( $this ) . "Raw" );
+ if ( $hookResult ) {
die( $hookResult );
}