mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-14 19:14:45 +00:00
Convert Special:Gadgets/export/$par to use OOUI
Bug: T191822 Change-Id: Ia59918a1a7f10d56a5c32050591a537d90c6de7c
This commit is contained in:
parent
b4b79a6cc7
commit
54d1eb0d77
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue