Bartosz Dziewoński has uploaded a new change for review.
https://gerrit.wikimedia.org/r/184222
Change subject: Update HTMLForm usage for I086a84f1 in MediaWiki
......................................................................
Update HTMLForm usage for I086a84f1 in MediaWiki
Change-Id: I086a84f1c8cc6a16710709b7806c7f5f96462b32
---
M SpecialPetition.php
1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Petition
refs/changes/22/184222/1
diff --git a/SpecialPetition.php b/SpecialPetition.php
index 616f7c0..8950baf 100644
--- a/SpecialPetition.php
+++ b/SpecialPetition.php
@@ -198,8 +198,7 @@
),
);
- $form = new HTMLForm( $formDescriptor,
RequestContext::getMain(), 'petition' );
- $form->setDisplayFormat( 'vform' );
+ $form = HTMLForm::factory( 'vform', $formDescriptor,
RequestContext::getMain(), 'petition' );
$form->setId( 'petition-form' );
$form->setSubmitText( wfMessage( 'petition-form-submit'
)->text() );
--
To view, visit https://gerrit.wikimedia.org/r/184222
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I086a84f1c8cc6a16710709b7806c7f5f96462b32
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Petition
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits