https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112762

Revision: 112762
Author:   brion
Date:     2012-03-01 02:00:16 +0000 (Thu, 01 Mar 2012)
Log Message:
-----------
Fix for font path on MathJax 2.0

Modified Paths:
--------------
    trunk/extensions/Math/modules/ext.math.mathjax.enabler.js

Modified: trunk/extensions/Math/modules/ext.math.mathjax.enabler.js
===================================================================
--- trunk/extensions/Math/modules/ext.math.mathjax.enabler.js   2012-03-01 
01:57:44 UTC (rev 112761)
+++ trunk/extensions/Math/modules/ext.math.mathjax.enabler.js   2012-03-01 
02:00:16 UTC (rev 112762)
@@ -22,6 +22,7 @@
   delete MathJax.Message.styles["#MathJax_Message"].left;
   if ( typeof(mathJax.userConfig) !== "undefined" ) MathJax.Hub.Config( 
mathJax.userConfig );
   //if ( typeof(mathJax.fontDir) !== "undefined" ) MathJax.OutputJax.fontDir = 
mathJax.fontDir; else MathJax.Hub.Config({ NativeMML: {webFont: null} });
+  MathJax.OutputJax.fontDir = mathJax.fontDir = 
mediaWiki.config.get('wgExtensionAssetsPath') + '/Math/modules/MathJax/fonts';
   MathJax.Hub.Register.StartupHook("End Extensions", function() {
          /*
           // this section is newly commented out while updating to MJ 2.0


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to