r98420 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98419‎ | r98420 | r98421 >
Date:17:44, 29 September 2011
Author:aaron
Status:ok
Tags:
Comment:
Made getParserOutput() actually use the right parserOptions for the user
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1800,7 +1800,8 @@
18011801 }
18021802
18031803 if ( $useParserCache ) {
1804 - $parserOutput = ParserCache::singleton()->get( $this, $this->mPage->getParserOptions() );
 1804+ $options = $this->mPage->makeParserOptions( $user );
 1805+ $parserOutput = ParserCache::singleton()->get( $this, $options );
18051806 if ( $parserOutput !== false ) {
18061807 wfProfileOut( __METHOD__ );
18071808 return $parserOutput;

Status & tagging log