r43677 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43676‎ | r43677 | r43678 >
Date:15:21, 18 November 2008
Author:catrope
Status:ok
Tags:
Comment:
API: Make reblocking (introduced in r42843) possible through the API
* Add reblock parameter to action=block
* Tweak the description for allowusertalk for consistency
Modified paths:
  • /trunk/phase3/includes/api/ApiBlock.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiBlock.php
@@ -85,6 +85,7 @@
8686 $form->BlockEmail = $params['noemail'];
8787 $form->BlockHideName = $params['hidename'];
8888 $form->BlockAllowUsertalk = $params['allowusertalk'] && $wgBlockAllowsUTEdit;
 89+ $form->BlockReblock = $params['reblock'];
8990
9091 $userID = $expiry = null;
9192 $retval = $form->doBlock($userID, $expiry);
@@ -127,6 +128,7 @@
128129 'noemail' => false,
129130 'hidename' => false,
130131 'allowusertalk' => false,
 132+ 'reblock' => false,
131133 );
132134 }
133135
@@ -142,7 +144,8 @@
143145 'autoblock' => 'Automatically block the last used IP address, and any subsequent IP addresses they try to login from',
144146 'noemail' => 'Prevent user from sending e-mail through the wiki. (Requires the "blockemail" right.)',
145147 'hidename' => 'Hide the username from the block log. (Requires the "hideuser" right.)',
146 - 'allowusertalk' => 'Whether to allow the user to edit their own talk page (Dependent on $wgBlockAllowsUTEdit)'
 148+ 'allowusertalk' => 'Allow the user to edit their own talk page (depends on $wgBlockAllowsUTEdit)',
 149+ 'reblock' => 'If the user is already blocked, overwrite the existing block',
147150 );
148151 }
149152

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r42843(bug 10080) (bug 15820) - Allow modification of blocks without unblocking, an...mrzman21:45, 30 October 2008

Status & tagging log