Cleanup to r69191: use addParserOutput() instead of addHtml(), specify current rev...
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 9 Jul 2010 12:43:27 +0000 (12:43 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 9 Jul 2010 12:43:27 +0000 (12:43 +0000)
includes/diff/DifferenceInterface.php

index d44823c..490d76d 100644 (file)
@@ -444,11 +444,12 @@ CONTROL;
                                $wgOut->addHTML( "\n</pre>\n" );
                        }
                } elseif( $pCache ) {
-                       $pOutput = ParserCache::singleton()->get( new Article( $this->mTitle ), $wgUser );
+                       $article = new Article( $this->mTitle, 0 );
+                       $pOutput = ParserCache::singleton()->get( $article, $wgUser );
                        if( $pOutput ) {
-                               $wgOut->addHtml( $pOutput->getText() );
+                               $wgOut->addParserOutput( $pOutput );
                        } else {
-                               $wgOut->addWikiTextTidy( $this->mNewtext );
+                               $article->doViewParse();
                        }
                } else {
                        $wgOut->addWikiTextTidy( $this->mNewtext );