Fix JS and CSS diffs
authordaniel <daniel.kinzler@wikimedia.de>
Thu, 4 Oct 2012 10:11:56 +0000 (12:11 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Thu, 4 Oct 2012 10:11:56 +0000 (12:11 +0200)
Change-Id: I8801d49af258141ba97e88e719f87105fdc01a35

includes/diff/DifferenceEngine.php

index a275763..f29c873 100644 (file)
@@ -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 ) ) ) {