Index: trunk/extensions/AJAXPoll/AJAXPoll_body.php |
— | — | @@ -28,16 +28,16 @@ |
29 | 29 | } |
30 | 30 | |
31 | 31 | # The callback function for converting the input text to HTML output |
32 | | - static function AJAXPollRender( $input ) { |
33 | | - global $wgParser, $wgUser, $wgOut, $wgTitle, $wgScriptPath, |
| 32 | + static function AJAXPollRender( $input, $params = array(), Parser $parser ) { |
| 33 | + global $wgUser, $wgOut, $wgTitle, $wgScriptPath, |
34 | 34 | $wgAJAXPollTrackingCategory; |
35 | 35 | |
36 | | - $wgParser->disableCache(); |
| 36 | + $parser->disableCache(); |
37 | 37 | |
38 | 38 | if ( $wgAJAXPollTrackingCategory === true ) { |
39 | | - $wgParser->addTrackingCategory( 'ajaxpoll-tracking-category' ); |
| 39 | + $parser->addTrackingCategory( 'ajaxpoll-tracking-category' ); |
40 | 40 | } elseif ( is_string( $wgAJAXPollTrackingCategory ) ) { |
41 | | - $wgParser->addTrackingCategory( $wgAJAXPollTrackingCategory ); |
| 41 | + $parser->addTrackingCategory( $wgAJAXPollTrackingCategory ); |
42 | 42 | } |
43 | 43 | |
44 | 44 | if ( $wgUser->getName() == '' ) { |