From: daniel Date: Tue, 9 Oct 2012 12:23:42 +0000 (+0200) Subject: Fix merge artifact in Article::showCssOrJsPage. X-Git-Tag: 1.31.0-rc.0~22092 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=1048b0bcb2861feae1c4f3e7bcb6cf4691b67553;p=lhc%2Fweb%2Fwiklou.git Fix merge artifact in Article::showCssOrJsPage. Change-Id: I1e9608809b81d2c5feeb048ddee96d5324b62a81 --- diff --git a/includes/Article.php b/includes/Article.php index ee963384e1..736781225a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -832,19 +832,20 @@ class Article extends Page { * @param bool $showCacheHint whether to show a message telling the user to clear the browser cache (default: true). */ protected function showCssOrJsPage( $showCacheHint = true ) { + $outputPage = $this->getContext()->getOutput(); + if ( $showCacheHint ) { $dir = $this->getContext()->getLanguage()->getDir(); $lang = $this->getContext()->getLanguage()->getCode(); - $outputPage = $this->getContext()->getOutput(); $outputPage->wrapWikiMsg( "
\n$1\n
", 'clearyourcache' ); } // Give hooks a chance to customise the output - if ( ContentHandler::runLegacyHooks( 'ShowRawCssJs', array( $this->fetchContentObject(), $this->getTitle(), $wgOut ) ) ) { + if ( ContentHandler::runLegacyHooks( 'ShowRawCssJs', array( $this->fetchContentObject(), $this->getTitle(), $outputPage ) ) ) { $po = $this->mContentObject->getParserOutput( $this->getTitle() ); - $wgOut->addHTML( $po->getText() ); + $outputPage->addHTML( $po->getText() ); } }