* Fix for r41340, r96405, r97849: introduce a function which gets the current content...
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 5 Mar 2012 05:53:12 +0000 (05:53 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 5 Mar 2012 05:53:12 +0000 (05:53 +0000)
commit7df3473cfea59df53debb7a9eefffed8a7f20fb3
tree17d5facf72b6c7755373909479c9e3a855795f9c
parent0ae75426c64b72e7b65fbb5045e2d3926b447fcf
* Fix for r41340, r96405, r97849: introduce a function which gets the current content language, called Parser::getTargetLanguage() following the ParserOptions terminology, and added doc comments, to improve the chances of a human being able to work out what is going on. Just because a function happens to do the thing you want doesn't mean you should call it.
* The language object used for lc() in Parser::braceSubstitution() must match the one used in setFunctionHook() during firstCallInit(). It can't change depending on what message you are parsing. Use $wgContLang like before r97849.
includes/parser/Parser.php