"IAlex" posted a comment on MediaWiki.r103613.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/103613#c27879

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:

<code>Article::getRawText()</code> is basically safe because it returns only 
the current content and it cannot be deleted.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to