Replace deprecated untidy OutputPage::addWikiText() method

The replacement OutputPage::addWikiTextAsInterface() method was added in
MW 1.32; the minimum required MW version has been bumped accordingly.

Bug: T198214
Change-Id: Ie9932b7398d0a9184094a99aec060d78f62dd6f0
This commit is contained in:
C. Scott Ananian 2018-10-17 13:08:39 -04:00 committed by C. Scott Ananian
parent b976708fa5
commit 0f32a506a0
3 changed files with 5 additions and 2 deletions

2
README
View File

@ -1,4 +1,4 @@
This version (for MediaWiki 1.31) has some changes since previous versions:
The version for MediaWiki 1.31+ has some changes since previous versions:
By default the math rendering service from the Wikimedia Foundation located at
https://wikimedia.org/api/rest_v1/

View File

@ -12,6 +12,9 @@
"license-name": "GPL-2.0-or-later",
"callback": "MathHooks::registerExtension",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.32.0"
},
"AutoloadClasses": {
"MathMathSymbolsDataModule": "src/MathMathSymbolsDataModule.php",
"MathChemSymbolsDataModule": "src/MathChemSymbolsDataModule.php",

View File

@ -35,7 +35,7 @@ class SpecialMathStatus extends SpecialPage {
$out->addWikiMsg( 'math-status-introduction', count( $enabledMathModes ) );
foreach ( $enabledMathModes as $modeNr => $modeName ) {
$out->addWikiText( "=== $modeName ===" );
$out->addWikiTextAsInterface( "=== $modeName ===" );
switch ( $modeNr ) {
case 'mathml':
$this->runMathMLTest( $modeName );