API: Fixing issue mentioned on bug 16129 comment #3: for certain inputs, action=parse...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 20 Dec 2008 20:00:07 +0000 (20:00 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 20 Dec 2008 20:00:07 +0000 (20:00 +0000)
commit0dfff7a98890752133c54029f1202432549ea984
tree32289784f39fd7853196faa18e2c26715b8a145f
parentc707e3370bbad148c47f128d27f75bb8e6fd7aff
API: Fixing issue mentioned on bug 16129 comment #3: for certain inputs, action=parse dies with an internal error whining about $wgTitle not being set in OutputPage::parse(). This commit works around this by setting $wgTitle, but the parser and its friends should really leave $wgTitle alone, because people might want to parse non-$wgTitle titles, which the Parser::parse() docs suggest is possible (and it should be), but apparently isn't.
includes/api/ApiParse.php