"IAlex" posted a comment on MediaWiki.r103613. URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/103613#c27874
Commit summary for MediaWiki.r103613: * 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 IAlex's comment: Such case will the handled by the <code>$rev->userCan( Revision::DELETED_TEXT )</code> check on line 86. _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
