Go to file
Ori Livneh 9ba4ef269d Only update the cache on cache miss
Change I9b1d68c4faa8d177d8d0088fa1a5879caed4f1fe added an indiscriminant call
to writeCache(). I assume that it was supposed to be regulated by the check for
$this->isRecall() (which is a getter for '$this->recall'), but there was no
concomitant change to ensure that recall is set true on cache hits.

My fix does not set recall to true. The style of "pass-by-attribute" is tricky
and should be factored out by a subsequent change. This change moves the call
to writeCache() so that it is only called on cache miss.

Change-Id: I9b690e55001859c97fd40330272791d49ec6de75
2013-02-21 17:39:17 -08:00
db Breaking the 'math' table setup out to Math extension. Should be the last main step in extension-ification of the math options! 2011-04-22 21:37:16 +00:00
math Restructuring Math classes 2013-02-07 20:35:45 -08:00
modules JSHint: Equality, unused arguments and other minor remnants. 2013-02-06 20:20:14 -08:00
tests Add unit tests, demonstrating how to stub out deps. 2013-02-17 20:55:47 -08:00
.gitignore Ignore .DS_Store 2012-06-02 11:42:18 +02:00
.gitreview Adding .gitreview 2012-03-23 10:30:45 -07:00
.jshintignore JSHint: ignore modules/MathJax 2013-01-18 12:22:28 +01:00
.jshintrc JSHint: Add .jshintrc 2013-02-06 19:54:07 -08:00
Math.hooks.php Only update the cache on cache miss 2013-02-21 17:39:17 -08:00
Math.i18n.php Localisation updates from http://translatewiki.net. 2013-01-29 21:02:36 +00:00
Math.php Add and register PHP unit tests for MathSource class 2013-02-17 20:23:50 +00:00
MathMathJax.php Restructuring Math classes 2013-02-07 20:35:45 -08:00
mathParserTests.txt Restructuring Math classes 2013-02-07 20:35:45 -08:00
MathRenderer.php Fix MathRenderer::renderMath. 2013-02-17 10:32:09 +01:00
MathSource.php Restructuring Math classes 2013-02-07 20:35:45 -08:00
MathTexvc.php Only update the cache on cache miss 2013-02-21 17:39:17 -08:00
README Add and register PHP unit tests for MathSource class 2013-02-17 20:23:50 +00:00

This version (for MediaWiki 1.19) has some changes since previous versions:

* rendering options have been reduced to just 'Always PNG' and 'Leave it as TeX'
** all other rendering options will merge to PNG.
* initial experimental support for integrating MathJax client-side rendering

See the README in the math subdirectory for more info on setting up the
low-level conversion tools.

For testing your installation run
php tests/phpunit/phpunit.php extensions/Math/tests/
from your MediWiki home path.