Cleanup in MagicWord::$mVariableIDs, removed IDs that aren't handled in Parser::getVa...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 3 May 2009 12:38:13 +0000 (12:38 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 3 May 2009 12:38:13 +0000 (12:38 +0000)
commit9c8e5796c8a906e79dd63d212bb994e24b72debe
tree7a7201b8040f88697313ede02a6e5bc27cf94c79
parentc665af29b781f6b74f483caf3debf42482138ea9
Cleanup in MagicWord::$mVariableIDs, removed IDs that aren't handled in Parser::getVariableValue().

Side effect: Removed "Pages in namespace (Magic word disabled currently)" parser test added in r17687 by nickj (was passing; I know). The problem is that the expected result is an empty string, but since it's disabled by default with $wgAllowSlowParserFunctions = false (i.e. not added to parser's list of magic words IDs) it should return a red link to [[Template:PAGESINNAMESPACE:]] (the empty string is produced because "{{PAGESINNAMESPACE:}}" is handled as variable and not as parser function).
includes/MagicWord.php
maintenance/parserTests.txt