From 30df62d335a7cbaf228813bbb831b56615ea1e0e Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 27 Dec 2012 19:49:41 +0100 Subject: [PATCH] Follow-up I9c7aa3b2 (b28c7a8): fix one more validation error "size" attribute of is not allowed when type is "file". Change-Id: Id8291d2c2e2ddc3e0c462c0eaa3817634d088c6b --- includes/specials/SpecialImport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' ) ) . ' ' . " -- 2.20.1