From: Raimond Spekking Date: Thu, 13 Mar 2008 12:35:37 +0000 (+0000) Subject: * (bug 13343) Restore default (old name) in Special:MovePage X-Git-Tag: 1.31.0-rc.0~49142 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=96972f19fcb153433d00cd05791b379f72ee1944;p=lhc%2Fweb%2Fwiklou.git * (bug 13343) Restore default (old name) in Special:MovePage Fix regression from r31775 --- diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index 778255494d..8addbd62ed 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -88,7 +88,6 @@ class MovePageForm { # Show the current title as a default # when the form is first opened. $newTitle = $oldTitle; - $encNewTitle = htmlspecialchars( $oldTitle ); } else { if( $err == '' ) { $nt = Title::newFromURL( $this->newTitle ); @@ -103,7 +102,6 @@ class MovePageForm { } } $newTitle = $this->newTitle; - $encNewTitle = htmlspecialchars( $newTitle ); } if ( $err == 'articleexists' && $wgUser->isAllowed( 'delete' ) ) { @@ -166,7 +164,7 @@ class MovePageForm { Xml::label( wfMsg( 'newtitle' ), 'wpNewTitle' ) . " " . - Xml::input( 'wpNewTitle', 40, $this->newTitle, array( 'type' => 'text', 'id' => 'wpNewTitle' ) ) . + Xml::input( 'wpNewTitle', 40, $newTitle, array( 'type' => 'text', 'id' => 'wpNewTitle' ) ) . Xml::hidden( 'wpOldTitle', $oldTitle ) . "