Update HTMLForm usage for I086a84f1 in MediaWiki

Change-Id: I086a84f1c8cc6a16710709b7806c7f5f96462b32
This commit is contained in:
Bartosz Dziewoński 2015-01-11 15:35:28 +01:00
parent b1fc2ac318
commit 0cb9eadbdc

View file

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