From: Alexandre Emsenhuber Date: Thu, 27 Dec 2012 18:49:41 +0000 (+0100) Subject: Follow-up I9c7aa3b2 (b28c7a8): fix one more validation error X-Git-Tag: 1.31.0-rc.0~21171^2 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=30df62d335a7cbaf228813bbb831b56615ea1e0e;p=lhc%2Fweb%2Fwiklou.git Follow-up I9c7aa3b2 (b28c7a8): fix one more validation error "size" attribute of is not allowed when type is "file". Change-Id: Id8291d2c2e2ddc3e0c462c0eaa3817634d088c6b --- diff --git a/includes/specials/SpecialImport.php b/includes/specials/SpecialImport.php index bed39b263e..1ae201b4f9 100644 --- a/includes/specials/SpecialImport.php +++ b/includes/specials/SpecialImport.php @@ -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' ) . " " . - Xml::input( 'xmlimport', 50, '', array( 'id' => 'xmlimport', 'type' => 'file' ) ) . ' ' . + Html::input( 'xmlimport', '', 'file', array( 'id' => 'xmlimport' ) ) . ' ' . "