mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-13 17:53:22 +00:00
SpecialGadgets: Avoid setting internal fields of HTMLForm
HTMLForm would handle title itself, don't need to set it manually here. Depends-On: Iaec81a2fb49162f2fc764f143f88e887572a3a0b Change-Id: I4a9788e853463e51570ba7c04a8bd40f1ed95cfa
This commit is contained in:
parent
f9d09841cf
commit
3c23c202e5
|
@ -8,7 +8,7 @@
|
|||
"descriptionmsg": "gadgets-desc",
|
||||
"license-name": "GPL-2.0-or-later",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.38.0"
|
||||
"MediaWiki": ">= 1.39.0"
|
||||
},
|
||||
"type": "other",
|
||||
"namespaces": [
|
||||
|
|
|
@ -306,7 +306,7 @@ class SpecialGadgets extends SpecialPage {
|
|||
|
||||
$htmlForm = HTMLForm::factory( 'ooui', [], $this->getContext() );
|
||||
$htmlForm
|
||||
->addHiddenField( 'title', SpecialPage::getTitleFor( 'Export' )->getPrefixedDBKey() )
|
||||
->setTitle( SpecialPage::getTitleFor( 'Export' ) )
|
||||
->addHiddenField( 'pages', $exportList )
|
||||
->addHiddenField( 'wpDownload', '1' )
|
||||
->addHiddenField( 'templates', '1' )
|
||||
|
|
Loading…
Reference in a new issue