* Use ParserOptions::newFromContext() to not depend on $wgUser and $wgLang
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 18 Nov 2011 21:36:57 +0000 (21:36 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 18 Nov 2011 21:36:57 +0000 (21:36 +0000)
commitb1bb28c606814c6c5abb632df92026b3c439c349
tree65c5bd155990c3d20bebbe34b7e3c78c5ee516f9
parentad0be66b0cca4a74b340c8ba5e266be1419c3040
* Use ParserOptions::newFromContext() to not depend on $wgUser and $wgLang
* Use a WikiPage object instead of Article to get the text or the ParserOutput and create the object directly in getParsedSectionOrText()
* Use Title::getLatestRevID() instead of Article::getRevIdFetched() since the latter will always return the current revision ID when 0 is passed as second parameter to the constructor
* Pass the User object to Revision::getText()
* Removed double setting of $wgTitle
includes/api/ApiParse.php