Replace deprecated HTMLForm::setPreText

Bug: T325474
Change-Id: I6dbbee52e27fd048cba3bd58a23554324c0db4b9
This commit is contained in:
Umherirrender 2022-12-27 12:29:21 +01:00
parent 762e88cb14
commit 0fbb714b36
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@
"descriptionmsg": "oathauth-desc", "descriptionmsg": "oathauth-desc",
"type": "other", "type": "other",
"requires": { "requires": {
"MediaWiki": ">= 1.37.0" "MediaWiki": ">= 1.38.0"
}, },
"license-name": "GPL-2.0-or-later AND GPL-3.0-or-later", "license-name": "GPL-2.0-or-later AND GPL-3.0-or-later",
"attributes": { "attributes": {

View file

@ -53,7 +53,7 @@ class DisableOATHForUser extends FormSpecialPage {
public function alterForm( HTMLForm $form ) { public function alterForm( HTMLForm $form ) {
$form->setMessagePrefix( 'oathauth' ); $form->setMessagePrefix( 'oathauth' );
$form->setWrapperLegendMsg( 'oathauth-disable-for-user' ); $form->setWrapperLegendMsg( 'oathauth-disable-for-user' );
$form->setPreText( $this->msg( 'oathauth-disable-intro' )->parse() ); $form->setPreHtml( $this->msg( 'oathauth-disable-intro' )->parse() );
$form->getOutput()->setPageTitle( $this->msg( 'oathauth-disable-for-user' ) ); $form->getOutput()->setPageTitle( $this->msg( 'oathauth-disable-for-user' ) );
} }