Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -4371,4 +4371,5 @@ |
4372 | 4372 | 'disableaccount-mustconfirm' => 'You must confirm that you wish to disable this account.', |
4373 | 4373 | 'disableaccount-nosuchuser' => 'The user account "$1" does not exist.', |
4374 | 4374 | 'disableaccount-success' => 'The user account "$1" has been permanently disabled.', |
| 4375 | +'disableaccount-logentry' => 'permanently disabled the user account [[$1]].', |
4375 | 4376 | ); |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -4628,6 +4628,7 @@ |
4629 | 4629 | 'protect/unprotect' => 'unprotectedarticle', |
4630 | 4630 | 'protect/move_prot' => 'movedarticleprotection', |
4631 | 4631 | 'rights/rights' => 'rightslogentry', |
| 4632 | + 'rights/disable' => 'disableaccount-logentry', |
4632 | 4633 | 'delete/delete' => 'deletedarticle', |
4633 | 4634 | 'delete/restore' => 'undeletedarticle', |
4634 | 4635 | 'delete/revision' => 'revdelete-logentry', |
Index: trunk/phase3/includes/specials/SpecialDisableAccount.php |
— | — | @@ -13,6 +13,10 @@ |
14 | 14 | 'validation-callback' => array( __CLASS__, 'validateUser' ), |
15 | 15 | 'label-message' => 'disableaccount-user', |
16 | 16 | ), |
| 17 | + 'comment' => array( |
| 18 | + 'type' => 'text', |
| 19 | + 'label-message' => 'movereason', |
| 20 | + ), |
17 | 21 | 'confirm' => array( |
18 | 22 | 'type' => 'toggle', |
19 | 23 | 'validation-callback' => array( __CLASS__, 'checkConfirmation' ), |
— | — | @@ -57,6 +61,10 @@ |
58 | 62 | $user->saveSettings(); |
59 | 63 | $user->invalidateCache(); |
60 | 64 | |
| 65 | + $logPage = new LogPage( 'rights' ); |
| 66 | + |
| 67 | + $logPage->addEntry( 'disable', $user->getUserPage(), $fields['comment'] ); |
| 68 | + |
61 | 69 | global $wgOut; |
62 | 70 | $wgOut->addWikiMsg( 'disableaccount-success', $user->getName() ); |
63 | 71 | |