Follow-up I9c7aa3b2 (b28c7a8): fix one more validation error

"size" attribute of <input> is not allowed when type is "file".

Change-Id: Id8291d2c2e2ddc3e0c462c0eaa3817634d088c6b
This commit is contained in:
Alexandre Emsenhuber 2012-12-27 19:49:41 +01:00
parent b28c7a8adc
commit 30df62d335

View file

@ -101,7 +101,7 @@ class SpecialImport extends SpecialPage {
$this->logcomment = $request->getText( 'log-comment' );
$this->pageLinkDepth = $wgExportMaxLinkDepth == 0 ? 0 : $request->getIntOrNull( 'pagelink-depth' );
$this->rootpage = $request->getText( 'rootpage' );
$this->rootpage = $request->getText( 'rootpage' );
$user = $this->getUser();
if ( !$user->matchEditToken( $request->getVal( 'editToken' ) ) ) {
@ -201,7 +201,7 @@ class SpecialImport extends SpecialPage {
Xml::label( $this->msg( 'import-upload-filename' )->text(), 'xmlimport' ) .
"</td>
<td class='mw-input'>" .
Xml::input( 'xmlimport', 50, '', array( 'id' => 'xmlimport', 'type' => 'file' ) ) . ' ' .
Html::input( 'xmlimport', '', 'file', array( 'id' => 'xmlimport' ) ) . ' ' .
"</td>
</tr>
<tr>