Legoktm has submitted this change and it was merged.
Change subject: Update HTMLForm usage for I086a84f1 in MediaWiki
......................................................................
Update HTMLForm usage for I086a84f1 in MediaWiki
Change-Id: I086a84f1c8cc6a16710709b7806c7f5f96462b32
---
M SpecialThanks.php
1 file changed, 7 insertions(+), 3 deletions(-)
Approvals:
Legoktm: Verified; Looks good to me, approved
diff --git a/SpecialThanks.php b/SpecialThanks.php
index 5e0a6f5..b21ae98 100644
--- a/SpecialThanks.php
+++ b/SpecialThanks.php
@@ -90,9 +90,6 @@
* @param HTMLForm $form
*/
protected function alterForm( HTMLForm $form ) {
- $form->setDisplayFormat( 'vform' );
- $form->setWrapperLegend( false );
-
if ( $this->type === null || $this->type === 'rev' && $this->id
=== '0' ) {
$form->suppressDefaultSubmit( true );
} else {
@@ -101,6 +98,13 @@
}
/**
+ * @return string
+ */
+ protected function getDisplayFormat() {
+ return 'vform';
+ }
+
+ /**
* Call the API internally.
* @param array $data
* @return Status
--
To view, visit https://gerrit.wikimedia.org/r/184221
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I086a84f1c8cc6a16710709b7806c7f5f96462b32
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Thanks
Gerrit-Branch: master
Gerrit-Owner: Bartosz DziewoĆski <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits