* Added WikiPage::getParserOutput() and changed Article::getParserOutput() to use it
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 17 Nov 2011 20:21:54 +0000 (20:21 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 17 Nov 2011 20:21:54 +0000 (20:21 +0000)
commitdd58309f1a78b907f1c043a3002d0aa03ef3a04d
tree8a6d63f089e1a569e51731c3534759098a9c178d
parentfcb28f12ea3f4a1fc06da5f96141910bf58fcdd5
* Added WikiPage::getParserOutput() and changed Article::getParserOutput() to use it
* WikiPage::getParserOutput() requires a ParserOptions object (and optionally the revision ID) instead of an User object, removes an hidden dependency on $wgLang. For this reason, WikiPage::isParserCacheUsed() now also uses a ParserOptions object instead of an User object (doesn't change anything in the code except the variable name and it's not called in extensions)
* Moved PoolWorkArticleView to WikiPage.php and added an entry in the AutoLoader and moved output-related stuff directly in Article::view() so that in can be shared with WikiPage::getParserOutput() (removes code duplication, etc.)
* Added the revision ID to the PoolCounter key so that it knows which revision is being parsed and doesn't wait for another parse operation with same options but different revisions
* Removed Article::doViewParse(), Article::tryDirtyCache() and Article::getOutputFromWikitext() since they are now integrated in PoolWorkArticleView and Article::view() and there are no callers in extensions. This also fixes a bug since Article::doViewParse() will get another ParserOptions instance with special options set in Article::view() not be repercuted.
* Updated DifferenceEngine to use the new system
* Updated docs/memcached.txt to correct method names
docs/memcached.txt
includes/Article.php
includes/AutoLoader.php
includes/WikiPage.php
includes/diff/DifferenceEngine.php