diff --git a/SyntaxHighlight_GeSHi.class.php b/SyntaxHighlight_GeSHi.class.php index b2781a34..8b3fb50c 100644 --- a/SyntaxHighlight_GeSHi.class.php +++ b/SyntaxHighlight_GeSHi.class.php @@ -102,10 +102,10 @@ class SyntaxHighlight_GeSHi { $out = str_replace( "\n", '', $out ); } // Register CSS - $parser->mOutput->addHeadItem( self::buildHeadItem( $geshi ), "source-{$lang}" ); + $parser->getOutput()->addHeadItem( self::buildHeadItem( $geshi ), "source-{$lang}" ); if( $wgUseSiteCss ) { - $parser->mOutput->addModuleStyles( 'ext.geshi.local' ); + $parser->getOutput()->addModuleStyles( 'ext.geshi.local' ); } $encloseTag = $enclose === GESHI_HEADER_NONE ? 'span' : 'div';