From 4817619fa6018fd50b518200445860a88496b17a Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 23 Apr 2012 10:08:11 +0200 Subject: [PATCH] bugfix: provide context for getParserOutput() --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 249344886d..6653b53d35 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -776,7 +776,7 @@ class Article extends Page { // Give hooks a chance to customise the output if ( !Hooks::isRegistered('ShowRawCssJs') || wfRunHooks( 'ShowRawCssJs', array( $this->fetchContent(), $this->getTitle(), $wgOut ) ) ) { #FIXME: fetchContent() is deprecated #FIXME: hook is deprecated - $po = $this->mContentObject->getParserOutput(); + $po = $this->mContentObject->getParserOutput( $this->getContext() ); $wgOut->addHTML( $po->getText() ); } } -- 2.20.1