Custom error message from the AbortMove hook is now passed in the same array as the...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 2 Oct 2008 18:19:22 +0000 (18:19 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 2 Oct 2008 18:19:22 +0000 (18:19 +0000)
includes/specials/SpecialMovepage.php

index 5d00e9f..955dd54 100644 (file)
@@ -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 = "<p><strong class=\"error\">$hookErr</strong></p>\n";
                                $wgOut->addHTML( $errMsg );
                        } else {