Liangent has uploaded a new change for review. https://gerrit.wikimedia.org/r/87519
Change subject: Remove one $wgContLang usage. ...................................................................... Remove one $wgContLang usage. Change-Id: Ic988d17c2e7026a17bde9d53bcc4d10c42d22118 --- M Math.hooks.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math refs/changes/19/87519/1 diff --git a/Math.hooks.php b/Math.hooks.php index 3489da5..b029f38 100644 --- a/Math.hooks.php +++ b/Math.hooks.php @@ -42,7 +42,7 @@ * @return string */ static function mathTagHook( $content, $attributes, $parser ) { - global $wgContLang, $wgUseMathJax; + global $wgUseMathJax; if ( trim( $content ) === "" ) { // bug 8372 return ""; } @@ -55,7 +55,7 @@ $parser->getOutput()->addModules( array( 'ext.math.mathjax.enabler' ) ); } $renderer->writeCache(); - return $wgContLang->armourMath( $renderedMath ); + return $parser->getConverterLanguage()->armourMath( $renderedMath ); } /** -- To view, visit https://gerrit.wikimedia.org/r/87519 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic988d17c2e7026a17bde9d53bcc4d10c42d22118 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Math Gerrit-Branch: master Gerrit-Owner: Liangent <liang...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits