Bartosz Dziewoński has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/184221

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Thanks 
refs/changes/21/184221/1

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: newchange
Gerrit-Change-Id: I086a84f1c8cc6a16710709b7806c7f5f96462b32
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Thanks
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to