mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 02:54:23 +00:00
Update HTMLForm usage for I086a84f1 in MediaWiki
Change-Id: I086a84f1c8cc6a16710709b7806c7f5f96462b32
This commit is contained in:
parent
b1fc2ac318
commit
0cb9eadbdc
|
@ -90,9 +90,6 @@ class SpecialThanks extends FormSpecialPage {
|
|||
* @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 {
|
||||
|
@ -100,6 +97,13 @@ class SpecialThanks extends FormSpecialPage {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected function getDisplayFormat() {
|
||||
return 'vform';
|
||||
}
|
||||
|
||||
/**
|
||||
* Call the API internally.
|
||||
* @param array $data
|
||||
|
|
Loading…
Reference in a new issue