Merge "SpecialGadgets: Avoid setting internal fields of HTMLForm"

This commit is contained in:
jenkins-bot 2022-03-31 12:46:00 +00:00 committed by Gerrit Code Review
commit 24a5961f0d
2 changed files with 2 additions and 2 deletions

View file

@ -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": [

View file

@ -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' )