* Callback function to output a block
*/
function formatRow( $block ) {
- global $wgUser, $wgLang;
+ global $wgUser, $wgLang, $wgBlockAllowsUTEdit;
wfProfileIn( __METHOD__ );
if( is_null( $msg ) ) {
$msg = array();
$keys = array( 'infiniteblock', 'expiringblock', 'unblocklink',
- 'anononlyblock', 'createaccountblock', 'noautoblockblock', 'emailblock' );
+ 'anononlyblock', 'createaccountblock', 'noautoblockblock', 'emailblock', 'nousertalk' );
foreach( $keys as $key ) {
$msg[$key] = wfMsgHtml( $key );
}
if ( $block->mBlockEmail && $block->mUser ) {
$properties[] = $msg['emailblock'];
}
+
+ if ( !$block->mAllowUsertalk && $wgBlockAllowsUTEdit ) {
+ $properties[] = $msg['nousertalk'];
+ }
$properties = implode( ', ', $properties );
'noautoblockblock' => 'autoblock disabled',
'createaccountblock' => 'account creation blocked',
'emailblock' => 'e-mail blocked',
+'nousertalk' => 'cannot edit usertalk',
'ipblocklist-empty' => 'The blocklist is empty.',
'ipblocklist-no-results' => 'The requested IP address or username is not blocked.',
'blocklink' => 'block',