From: Chad Horohoe Date: Sat, 11 Apr 2009 18:23:06 +0000 (+0000) Subject: No more $wgTitle in the diff engine. X-Git-Tag: 1.31.0-rc.0~42166 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=78b1818dbee98c3c9f24c7d7e98b3bb48b8999da;p=lhc%2Fweb%2Fwiklou.git No more $wgTitle in the diff engine. --- 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 );