Made getParserOutput() actually use the right parserOptions for the user
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 29 Sep 2011 17:44:43 +0000 (17:44 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 29 Sep 2011 17:44:43 +0000 (17:44 +0000)
includes/Article.php

index d738f5a..8f69a4c 100644 (file)
@@ -1800,7 +1800,8 @@ class Article extends Page {
                }
 
                if ( $useParserCache ) {
-                       $parserOutput = ParserCache::singleton()->get( $this, $this->mPage->getParserOptions() );
+                       $options = $this->mPage->makeParserOptions( $user );
+                       $parserOutput = ParserCache::singleton()->get( $this, $options );
                        if ( $parserOutput !== false ) {
                                wfProfileOut( __METHOD__ );
                                return $parserOutput;