r113652 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113651‎ | r113652 | r113653 >
Date:20:00, 12 March 2012
Author:wikinaut
Status:new
Tags:
Comment:
follow up r113641 . making it backwards compatible: allow again everyone to vote by default as proposed by Ashley
Modified paths:
  • /trunk/extensions/AJAXPoll/AJAXPoll.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AJAXPoll/AJAXPoll.php
@@ -31,7 +31,7 @@
3232 $wgExtensionCredits['parserhook'][] = array(
3333 'path' => __FILE__,
3434 'name' => 'AJAX Poll',
35 - 'version' => '1.65 20120312',
 35+ 'version' => '1.66 20120312',
3636 'author' => array( 'Dariusz Siedlecki', 'Jack Phoenix', 'Thomas Gries' ),
3737 'descriptionmsg' => 'ajaxpoll-desc',
3838 'url' => 'https://www.mediawiki.org/wiki/Extension:AJAX_Poll',
@@ -47,9 +47,11 @@
4848 # new user rights
4949 $wgAvailableRights[] = 'ajaxpoll-vote';
5050
51 -# default: nobody can vote
52 -$wgGroupPermissions['*']['ajaxpoll-vote'] = false;
53 -# allow users to vote
 51+# default: everyone can vote
 52+$wgGroupPermissions['*']['ajaxpoll-vote'] = true;
 53+# if you want to allow only users to vote, use the following code lines
 54+# in your LocalSettings.php after calling the AJAXPoll extension:
 55+# $wgGroupPermissions['*']['ajaxpoll-vote'] = false;
5456 # $wgGroupPermissions['user']['ajaxpoll-vote'] = true;
5557
5658 // Parameter to enable the automatic tracking category

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113641changing the default to nobody can vote. changing the English text to the mor...wikinaut18:15, 12 March 2012

Status & tagging log