# 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 );
}
}
$newTitle = $this->newTitle;
- $encNewTitle = htmlspecialchars( $newTitle );
}
if ( $err == 'articleexists' && $wgUser->isAllowed( 'delete' ) ) {
Xml::label( wfMsg( 'newtitle' ), 'wpNewTitle' ) .
"</td>
<td align='$start'>" .
- 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 ) .
"</td>
</tr>