From 96972f19fcb153433d00cd05791b379f72ee1944 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Thu, 13 Mar 2008 12:35:37 +0000 Subject: [PATCH] * (bug 13343) Restore default (old name) in Special:MovePage Fix regression from r31775 --- includes/SpecialMovepage.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 ) . " -- 2.20.1