r113544 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113543‎ | r113544 | r113545 >
Date:23:24, 9 March 2012
Author:wikinaut
Status:new
Tags:
Comment:
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.
Modified paths:
  • /trunk/extensions/AJAXPoll/AJAXPoll_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AJAXPoll/AJAXPoll_body.php
@@ -28,16 +28,16 @@
2929 }
3030
3131 # 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,
3434 $wgAJAXPollTrackingCategory;
3535
36 - $wgParser->disableCache();
 36+ $parser->disableCache();
3737
3838 if ( $wgAJAXPollTrackingCategory === true ) {
39 - $wgParser->addTrackingCategory( 'ajaxpoll-tracking-category' );
 39+ $parser->addTrackingCategory( 'ajaxpoll-tracking-category' );
4040 } elseif ( is_string( $wgAJAXPollTrackingCategory ) ) {
41 - $wgParser->addTrackingCategory( $wgAJAXPollTrackingCategory );
 41+ $parser->addTrackingCategory( $wgAJAXPollTrackingCategory );
4242 }
4343
4444 if ( $wgUser->getName() == '' ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113502add tracking category feature (enabled by default). Each page using this exte...wikinaut19:23, 9 March 2012

Status & tagging log