Convert Special:Gadgets/export/$par to use OOUI

Bug: T191822
Change-Id: Ia59918a1a7f10d56a5c32050591a537d90c6de7c
This commit is contained in:
Jayprakash12345 2018-04-09 23:19:46 +05:30
parent b4b79a6cc7
commit 54d1eb0d77

View file

@ -213,14 +213,17 @@ class SpecialGadgets extends SpecialPage {
$exportList .= "$page\n";
}
$output->addHTML( Html::openElement( 'form', [ 'method' => 'get', 'action' => $wgScript ] )
. Html::hidden( 'title', SpecialPage::getTitleFor( 'Export' )->getPrefixedDBKey() )
. Html::hidden( 'pages', $exportList )
. Html::hidden( 'wpDownload', '1' )
. Html::hidden( 'templates', '1' )
. Xml::submitButton( $this->msg( 'gadgets-export-download' )->text() )
. Html::closeElement( 'form' )
);
$htmlForm = HTMLForm::factory( 'ooui', [], $this->getContext() );
$htmlForm
->addHiddenField( 'title', SpecialPage::getTitleFor( 'Export' )->getPrefixedDBKey() )
->addHiddenField( 'pages', $exportList )
->addHiddenField( 'wpDownload', '1' )
->addHiddenField( 'templates', '1' )
->setAction( $wgScript )
->setMethod( 'get' )
->setSubmitText( $this->msg( 'gadgets-export-download' )->text() )
->prepareForm()
->displayForm( false );
}
protected function getGroupName() {