r112762 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112761‎ | r112762 | r112763 >
Date:02:00, 1 March 2012
Author:brion
Status:ok
Tags:
Comment:
Fix for font path on MathJax 2.0
Modified paths:
  • /trunk/extensions/Math/modules/ext.math.mathjax.enabler.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Math/modules/ext.math.mathjax.enabler.js
@@ -22,6 +22,7 @@
2323 delete MathJax.Message.styles["#MathJax_Message"].left;
2424 if ( typeof(mathJax.userConfig) !== "undefined" ) MathJax.Hub.Config( mathJax.userConfig );
2525 //if ( typeof(mathJax.fontDir) !== "undefined" ) MathJax.OutputJax.fontDir = mathJax.fontDir; else MathJax.Hub.Config({ NativeMML: {webFont: null} });
 26+ MathJax.OutputJax.fontDir = mathJax.fontDir = mediaWiki.config.get('wgExtensionAssetsPath') + '/Math/modules/MathJax/fonts';
2627 MathJax.Hub.Register.StartupHook("End Extensions", function() {
2728 /*
2829 // this section is newly commented out while updating to MJ 2.0

Status & tagging log