mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-23 23:13:27 +00:00
Merge "SpecialGadgets: Avoid setting internal fields of HTMLForm"
This commit is contained in:
commit
24a5961f0d
|
@ -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