bugfix: provide context for getParserOutput()
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 23 Apr 2012 08:08:11 +0000 (10:08 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 23 Apr 2012 08:08:11 +0000 (10:08 +0200)
includes/Article.php

index 2493448..6653b53 100644 (file)
@@ -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() );
                }
        }