From 78b1818dbee98c3c9f24c7d7e98b3bb48b8999da Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sat, 11 Apr 2009 18:23:06 +0000 Subject: [PATCH] No more $wgTitle in the diff engine. --- includes/diff/DifferenceEngine.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index aa48f9f31c..278853674f 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -380,7 +380,7 @@ CONTROL; function renderHtmlDiff() { - global $wgOut, $wgTitle, $wgParser, $wgDebugComments; + global $wgOut, $wgParser, $wgDebugComments; wfProfileIn( __METHOD__ ); $this->showDiffStyle(); @@ -408,7 +408,7 @@ CONTROL; $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? @@ -424,7 +424,7 @@ CONTROL; $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 ); -- 2.20.1