follow up r113502 . Using also here the correct parser as passed as parameter. thanks to everyone who help, I overlooked that. Please bear with me - that extension was not written initially by me.

This commit is contained in:
Thomas Gries 2012-03-09 23:24:38 +00:00
parent 9128bfd1ed
commit 8c5275bfb9
Notes: Thomas Gries 2012-03-09 23:24:38 +00:00

View file

@ -28,16 +28,16 @@ class AJAXPoll {
} }
# The callback function for converting the input text to HTML output # The callback function for converting the input text to HTML output
static function AJAXPollRender( $input ) { static function AJAXPollRender( $input, $params = array(), Parser $parser ) {
global $wgParser, $wgUser, $wgOut, $wgTitle, $wgScriptPath, global $wgUser, $wgOut, $wgTitle, $wgScriptPath,
$wgAJAXPollTrackingCategory; $wgAJAXPollTrackingCategory;
$wgParser->disableCache(); $parser->disableCache();
if ( $wgAJAXPollTrackingCategory === true ) { if ( $wgAJAXPollTrackingCategory === true ) {
$wgParser->addTrackingCategory( 'ajaxpoll-tracking-category' ); $parser->addTrackingCategory( 'ajaxpoll-tracking-category' );
} elseif ( is_string( $wgAJAXPollTrackingCategory ) ) { } elseif ( is_string( $wgAJAXPollTrackingCategory ) ) {
$wgParser->addTrackingCategory( $wgAJAXPollTrackingCategory ); $parser->addTrackingCategory( $wgAJAXPollTrackingCategory );
} }
if ( $wgUser->getName() == '' ) { if ( $wgUser->getName() == '' ) {