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:
parent
b976708fa5
commit
0f32a506a0
2
README
2
README
|
@ -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/
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue