function renderHtmlDiff() {
- global $wgOut, $wgTitle, $wgParser, $wgDebugComments;
+ global $wgOut, $wgParser, $wgDebugComments;
wfProfileIn( __METHOD__ );
$this->showDiffStyle();
$oldTidy = $popts->setTidy( true );
$popts->setEditSection( false );
- $parserOutput = $wgParser->parse( $this->mOldtext, $wgTitle, $popts, true, true, $wgOut->getRevisionId() );
+ $parserOutput = $wgParser->parse( $this->mOldtext, $this->getTitle(), $popts, true, true, $wgOut->getRevisionId() );
$popts->setTidy( $oldTidy );
//only for new?
$popts = $wgOut->parserOptions();
$oldTidy = $popts->setTidy( true );
- $parserOutput = $wgParser->parse( $this->mNewtext, $wgTitle, $popts, true, true, $wgOut->getRevisionId() );
+ $parserOutput = $wgParser->parse( $this->mNewtext, $this->getTitle(), $popts, true, true, $wgOut->getRevisionId() );
$popts->setTidy( $oldTidy );
$wgOut->addParserOutputNoText( $parserOutput );