mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-30 19:14:31 +00:00
Replace deprecated HTMLForm::setPreText
Bug: T325474 Change-Id: I6dbbee52e27fd048cba3bd58a23554324c0db4b9
This commit is contained in:
parent
762e88cb14
commit
0fbb714b36
|
@ -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": {
|
||||||
|
|
|
@ -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' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue