Merge "remove armourMath and wgContLang (bug 60799)"

This commit is contained in:
jenkins-bot 2014-04-08 11:16:23 +00:00 committed by Gerrit Code Review
commit 90d7783e8e
1 changed files with 3 additions and 4 deletions

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' );
}
/**