Replace some instances of $wgUser passed to ParserOutput::get()/getKey() for $wgOut...
authorSam Reed <reedy@users.mediawiki.org>
Tue, 10 Aug 2010 19:57:53 +0000 (19:57 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 10 Aug 2010 19:57:53 +0000 (19:57 +0000)
includes/diff/DifferenceInterface.php

index ba2a6da..9ff611e 100644 (file)
@@ -450,7 +450,7 @@ CONTROL;
                        }
                } elseif( $pCache ) {
                        $article = new Article( $this->mTitle, 0 );
-                       $pOutput = ParserCache::singleton()->get( $article, $wgUser );
+                       $pOutput = ParserCache::singleton()->get( $article, $wgOut->parserOptions() );
                        if( $pOutput ) {
                                $wgOut->addParserOutput( $pOutput );
                        } else {