r113641 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113640‎ | r113641 | r113642 >
Date:18:15, 12 March 2012
Author:wikinaut
Status:resolved (Comments)
Tags:
Comment:
changing the default to nobody can vote. changing the English text to the more polite 'You are not entitled to vote'
Modified paths:
  • /trunk/extensions/AJAXPoll/AJAXPoll.i18n.php (modified) (history)
  • /trunk/extensions/AJAXPoll/AJAXPoll.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AJAXPoll/AJAXPoll.php
@@ -19,7 +19,7 @@
2020 * @author Jack Phoenix <jack@countervandalism.net>
2121 * @author Thomas Gries
2222 * @maintainer Thomas Gries
23 - * @version 1.63
 23+ * @version 1.64
2424 * @link http://www.mediawiki.org/wiki/Extension:AJAX_Poll Documentation
2525 */
2626
@@ -31,7 +31,7 @@
3232 $wgExtensionCredits['parserhook'][] = array(
3333 'path' => __FILE__,
3434 'name' => 'AJAX Poll',
35 - 'version' => '1.63 20120310',
 35+ 'version' => '1.64 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,9 @@
4848 # new user rights
4949 $wgAvailableRights[] = 'ajaxpoll-vote';
5050
51 -# default: everyone can vote
 51+# default: nobody can vote
5252 $wgGroupPermissions['*']['ajaxpoll-vote'] = false;
53 -# if you want only users to vote use
 53+# allow users to vote
5454 # $wgGroupPermissions['user']['ajaxpoll-vote'] = true;
5555
5656 // Parameter to enable the automatic tracking category
Index: trunk/extensions/AJAXPoll/AJAXPoll.i18n.php
@@ -23,7 +23,7 @@
2424 'ajaxpoll-no-vote' => 'Please vote below.', // http://trac.wikia-code.com/changeset/867
2525 'ajaxpoll-info' => 'There {{PLURAL:$1|was one vote|were $1 votes}} since the poll was created on $2.',
2626 'ajaxpoll-submitting' => 'Please wait, submitting your vote.',
27 - 'ajaxpoll-vote-permission' => 'You cannot vote.',
 27+ 'ajaxpoll-vote-permission' => 'You are not enttitled to vote.',
2828
2929 'right-ajaxpoll-vote' => 'Can vote in AJAX-based polls',
3030 );

Follow-up revisions

RevisionCommit summaryAuthorDate
r113652follow up r113641 . making it backwards compatible: allow again everyone to v...wikinaut20:00, 12 March 2012

Comments

#Comment by Wikinaut (talk | contribs)   18:17, 12 March 2012

see typo correction in r113643

Status & tagging log