Index: trunk/phase3/includes/diff/DifferenceInterface.php |
— | — | @@ -444,11 +444,12 @@ |
445 | 445 | $wgOut->addHTML( "\n</pre>\n" ); |
446 | 446 | } |
447 | 447 | } elseif( $pCache ) { |
448 | | - $pOutput = ParserCache::singleton()->get( new Article( $this->mTitle ), $wgUser ); |
| 448 | + $article = new Article( $this->mTitle, 0 ); |
| 449 | + $pOutput = ParserCache::singleton()->get( $article, $wgUser ); |
449 | 450 | if( $pOutput ) { |
450 | | - $wgOut->addHtml( $pOutput->getText() ); |
| 451 | + $wgOut->addParserOutput( $pOutput ); |
451 | 452 | } else { |
452 | | - $wgOut->addWikiTextTidy( $this->mNewtext ); |
| 453 | + $article->doViewParse(); |
453 | 454 | } |
454 | 455 | } else { |
455 | 456 | $wgOut->addWikiTextTidy( $this->mNewtext ); |