From: Alexandre Emsenhuber Date: Thu, 2 Oct 2008 18:19:22 +0000 (+0000) Subject: Custom error message from the AbortMove hook is now passed in the same array as the... X-Git-Tag: 1.31.0-rc.0~44954 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=f15b2a92da1a13c466e0713bb359222c86463b3a;p=lhc%2Fweb%2Fwiklou.git Custom error message from the AbortMove hook is now passed in the same array as the hookaborted message --- diff --git a/includes/specials/SpecialMovepage.php b/includes/specials/SpecialMovepage.php index 5d00e9fec3..955dd54367 100644 --- a/includes/specials/SpecialMovepage.php +++ b/includes/specials/SpecialMovepage.php @@ -78,7 +78,7 @@ class MovePageForm { $this->watch = $wgRequest->getCheck( 'wpWatch' ); } - function showForm( $err, $hookErr = '' ) { + function showForm( $err ) { global $wgOut, $wgUser; $skin = $wgUser->getSkin(); @@ -150,6 +150,7 @@ class MovePageForm { if ( !empty($err) ) { $wgOut->setSubtitle( wfMsg( 'formerror' ) ); if( $err[0] == 'hookaborted' ) { + $hookErr = $err[1]; $errMsg = "

$hookErr

\n"; $wgOut->addHTML( $errMsg ); } else {