Index: trunk/phase3/includes/diff/DifferenceEngine.php |
— | — | @@ -380,7 +380,7 @@ |
381 | 381 | |
382 | 382 | |
383 | 383 | function renderHtmlDiff() { |
384 | | - global $wgOut, $wgTitle, $wgParser, $wgDebugComments; |
| 384 | + global $wgOut, $wgParser, $wgDebugComments; |
385 | 385 | wfProfileIn( __METHOD__ ); |
386 | 386 | |
387 | 387 | $this->showDiffStyle(); |
— | — | @@ -408,7 +408,7 @@ |
409 | 409 | $oldTidy = $popts->setTidy( true ); |
410 | 410 | $popts->setEditSection( false ); |
411 | 411 | |
412 | | - $parserOutput = $wgParser->parse( $this->mOldtext, $wgTitle, $popts, true, true, $wgOut->getRevisionId() ); |
| 412 | + $parserOutput = $wgParser->parse( $this->mOldtext, $this->getTitle(), $popts, true, true, $wgOut->getRevisionId() ); |
413 | 413 | $popts->setTidy( $oldTidy ); |
414 | 414 | |
415 | 415 | //only for new? |
— | — | @@ -424,7 +424,7 @@ |
425 | 425 | $popts = $wgOut->parserOptions(); |
426 | 426 | $oldTidy = $popts->setTidy( true ); |
427 | 427 | |
428 | | - $parserOutput = $wgParser->parse( $this->mNewtext, $wgTitle, $popts, true, true, $wgOut->getRevisionId() ); |
| 428 | + $parserOutput = $wgParser->parse( $this->mNewtext, $this->getTitle(), $popts, true, true, $wgOut->getRevisionId() ); |
429 | 429 | $popts->setTidy( $oldTidy ); |
430 | 430 | |
431 | 431 | $wgOut->addParserOutputNoText( $parserOutput ); |