* Fix for r57997 and bug 21222: move math, gallery, pre and nowiki to a new module...
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 3 Feb 2010 07:10:58 +0000 (07:10 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 3 Feb 2010 07:10:58 +0000 (07:10 +0000)
commitc7a8875329494a1f184049c670c05c518af742b2
tree378eef3d17711ac5dae28d0f31c5f0d2cbeffaa2
parent0071dd7375031a3f598c0db35527021c142dc735
* Fix for r57997 and bug 21222: move math, gallery, pre and nowiki to a new module called CoreTagHooks, analogous to CoreParserFunctions.
* Extended the return interface for tag hooks in a way analogous to the one for parser functions, allowing <nowiki> and <html> to specify that they want to be in the nowiki replacement array instead of the general replacement array.
* Removed ParserOptions::setUseTeX() and related. If <math> is going to be registered in firstCallInit(), then it needs to be stable across multiple parser calls and not change based on parser options. Only one extension caller.

In parserTests.inc:
* Fixed parser test failures due to $wgMathDirectory not being properly set up. The math directory of the host wiki was being used, leading to a parser test failure if it was not writable.
* Fixed message cache hack from r15502. Made parser tests not fail in the case where a tested message is overwritten by the local wiki. All tests now pass on my installation.
includes/AutoLoader.php
includes/parser/CoreTagHooks.php [new file with mode: 0644]
includes/parser/Parser.php
includes/parser/ParserOptions.php
maintenance/parserTests.inc