remove armourMath and wgContLang (bug 60799)

* armourMath is no longer needed

Bug: 60799

Change-Id: I1134d34d403b527821a1f7ccd370e78cf6197d71
(cherry picked from commit 2c555baf4f)
This commit is contained in:
physikerwelt 2014-02-03 23:22:26 +00:00 committed by Moritz Schubotz (Physikerwelt)
parent c5b0b15d8f
commit fcd542c2c5

View file

@ -89,10 +89,10 @@ class MathHooks {
* @param $content (the LaTeX input)
* @param $attributes
* @param Parser $parser
* @return string
* @return array
*/
static function mathTagHook( $content, $attributes, $parser ) {
global $wgContLang, $wgUseMathJax, $wgMathDisableTexFilter;
global $wgUseMathJax, $wgMathDisableTexFilter;
if ( trim( $content ) === '' ) { // bug 8372
return '';
@ -128,10 +128,9 @@ class MathHooks {
$parser->getOutput()->addModuleStyles( array( 'ext.math.styles' ) );
$renderer->writeCache();
$result = $wgContLang->armourMath( $renderedMath );
wfProfileOut( __METHOD__ );
return $result;
return array( $renderedMath, "markerType" => 'nowiki' );
}
/**