mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AJAXPoll
synced 2024-11-15 03:04:14 +00:00
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:
parent
9128bfd1ed
commit
8c5275bfb9
Notes:
Thomas Gries
2012-03-09 23:24:38 +00:00
|
@ -28,16 +28,16 @@ class AJAXPoll {
|
|||
}
|
||||
|
||||
# The callback function for converting the input text to HTML output
|
||||
static function AJAXPollRender( $input ) {
|
||||
global $wgParser, $wgUser, $wgOut, $wgTitle, $wgScriptPath,
|
||||
static function AJAXPollRender( $input, $params = array(), Parser $parser ) {
|
||||
global $wgUser, $wgOut, $wgTitle, $wgScriptPath,
|
||||
$wgAJAXPollTrackingCategory;
|
||||
|
||||
$wgParser->disableCache();
|
||||
$parser->disableCache();
|
||||
|
||||
if ( $wgAJAXPollTrackingCategory === true ) {
|
||||
$wgParser->addTrackingCategory( 'ajaxpoll-tracking-category' );
|
||||
$parser->addTrackingCategory( 'ajaxpoll-tracking-category' );
|
||||
} elseif ( is_string( $wgAJAXPollTrackingCategory ) ) {
|
||||
$wgParser->addTrackingCategory( $wgAJAXPollTrackingCategory );
|
||||
$parser->addTrackingCategory( $wgAJAXPollTrackingCategory );
|
||||
}
|
||||
|
||||
if ( $wgUser->getName() == '' ) {
|
||||
|
|
Loading…
Reference in a new issue