'protect/unprotect' => 'unprotectedarticle',
'protect/move_prot' => 'movedarticleprotection',
'rights/rights' => 'rightslogentry',
+ 'rights/disable' => 'disableaccount-logentry',
'delete/delete' => 'deletedarticle',
'delete/restore' => 'undeletedarticle',
'delete/revision' => 'revdelete-logentry',
'validation-callback' => array( __CLASS__, 'validateUser' ),
'label-message' => 'disableaccount-user',
),
+ 'comment' => array(
+ 'type' => 'text',
+ 'label-message' => 'movereason',
+ ),
'confirm' => array(
'type' => 'toggle',
'validation-callback' => array( __CLASS__, 'checkConfirmation' ),
$user->saveSettings();
$user->invalidateCache();
+ $logPage = new LogPage( 'rights' );
+
+ $logPage->addEntry( 'disable', $user->getUserPage(), $fields['comment'] );
+
global $wgOut;
$wgOut->addWikiMsg( 'disableaccount-success', $user->getName() );
'disableaccount-mustconfirm' => 'You must confirm that you wish to disable this account.',
'disableaccount-nosuchuser' => 'The user account "$1" does not exist.',
'disableaccount-success' => 'The user account "$1" has been permanently disabled.',
+'disableaccount-logentry' => 'permanently disabled the user account [[$1]].',
);