diff --git a/AJAXPoll.php b/AJAXPoll.php index cd4d393..d99ce1b 100644 --- a/AJAXPoll.php +++ b/AJAXPoll.php @@ -19,7 +19,7 @@ * @author Jack Phoenix * @author Thomas Gries * @maintainer Thomas Gries - * @version 1.77 + * @version 1.78 * @link http://www.mediawiki.org/wiki/Extension:AJAX_Poll Documentation */ @@ -31,7 +31,7 @@ if( !defined( 'MEDIAWIKI' ) ) { $wgExtensionCredits['parserhook'][] = array( 'path' => __FILE__, 'name' => 'AJAX Poll', - 'version' => '1.77 20120318', + 'version' => '1.78 20120319', 'author' => array( 'Dariusz Siedlecki', 'Jack Phoenix', 'Thomas Gries' ), 'descriptionmsg' => 'ajaxpoll-desc', 'url' => 'https://www.mediawiki.org/wiki/Extension:AJAX_Poll', @@ -70,16 +70,3 @@ $wgGroupPermissions['*']['ajaxpoll-vote'] = true; # in your LocalSettings.php after calling the AJAXPoll extension: # $wgGroupPermissions['*']['ajaxpoll-vote'] = false; # $wgGroupPermissions['user']['ajaxpoll-vote'] = true; - -// Parameter to enable the automatic tracking category -// for all pages using this parser extension -// -// Category name [[MediaWiki:Ajaxpoll-tracking-category]] (default) -// $wgAJAXPollTrackingCategory = true; -// -// you can assign a specific category name [[MediaWiki:Ajaxpoll-mycategory]] -// $wgAJAXPollTrackingCategory = 'ajaxpoll-mycategory'; -// -// you can disable the use of a tracking category -// $wgAJAXPollTrackingCategory = false; -$wgAJAXPollTrackingCategory = true; diff --git a/AJAXPoll_body.php b/AJAXPoll_body.php index 391fc49..619a1bf 100644 --- a/AJAXPoll_body.php +++ b/AJAXPoll_body.php @@ -30,16 +30,10 @@ class AJAXPoll { # The callback function for converting the input text to HTML output static function AJAXPollRender( $input, $params = array(), Parser $parser ) { - global $wgUser, $wgOut, $wgTitle, $wgScriptPath, $wgUseAjax, - $wgAJAXPollTrackingCategory; + global $wgUser, $wgOut, $wgTitle, $wgScriptPath, $wgUseAjax; $parser->disableCache(); - - if ( $wgAJAXPollTrackingCategory === true ) { - $parser->addTrackingCategory( 'ajaxpoll-tracking-category' ); - } elseif ( is_string( $wgAJAXPollTrackingCategory ) ) { - $parser->addTrackingCategory( $wgAJAXPollTrackingCategory ); - } + $parser->addTrackingCategory( 'ajaxpoll-tracking-category' ); if ( $wgUser->getName() == '' ) { $user = wfGetIP();