From: daniel Date: Thu, 4 Oct 2012 10:11:56 +0000 (+0200) Subject: Fix JS and CSS diffs X-Git-Tag: 1.31.0-rc.0~22097^2^2~14 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=c8c95a52f4db5565551ee640caaefd49dd7c9a79;p=lhc%2Fweb%2Fwiklou.git Fix JS and CSS diffs Change-Id: I8801d49af258141ba97e88e719f87105fdc01a35 --- diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index a275763722..f29c873c33 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -522,7 +522,7 @@ class DifferenceEngine extends ContextSource { if ( ContentHandler::runLegacyHooks( 'ShowRawCssJs', array( $this->mNewContent, $this->mNewPage, $out ) ) ) { // NOTE: deprecated hook, B/C only // use the content object's own rendering - $po = $this->mContentObject->getParserOutput(); + $po = $this->mNewRev->getContent()->getParserOutput( $this->mNewRev->getTitle(), $this->mNewRev->getId() ); $out->addHTML( $po->getText() ); } } elseif( !wfRunHooks( 'ArticleContentViewCustom', array( $this->mNewContent, $this->mNewPage, $out ) ) ) {