r23535 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23534‎ | r23535 | r23536 >
Date:02:26, 29 June 2007
Author:aaron
Status:old
Tags:
Comment:
*Use checkuser-blocked message
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser.i18n.php (modified) (history)
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -378,11 +378,11 @@
379379 if( $block->load( $ip, $users_ids[$name] ) ) {
380380 if( IP::isIPAddress($block->mAddress) && strpos($block->mAddress,'/') ) {
381381 $userpage = Title::makeTitle( NS_USER, $block->mAddress );
382 - $blocklog = $sk->makeKnownLinkObj( $logs, wfMsgHtml('blockedtitle'), 'type=block&page=' . urlencode( $userpage->getPrefixedText() ) );
 382+ $blocklog = $sk->makeKnownLinkObj( $logs, wfMsgHtml('checkuser-blocked'), 'type=block&page=' . urlencode( $userpage->getPrefixedText() ) );
383383 $s .= '<strong>(' . $blocklog . ' - ' . $block->mAddress . ')</strong><br/>';
384384 } else {
385385 $userpage = Title::makeTitle( NS_USER, $name );
386 - $blocklog = $sk->makeKnownLinkObj( $logs, wfMsgHtml('blockedtitle'), 'type=block&page=' . urlencode( $userpage->getPrefixedText() ) );
 386+ $blocklog = $sk->makeKnownLinkObj( $logs, wfMsgHtml('checkuser-blocked'), 'type=block&page=' . urlencode( $userpage->getPrefixedText() ) );
387387 $s .= '<strong>(' . $blocklog . ')</strong><br/>';
388388 }
389389 }
@@ -520,11 +520,11 @@
521521 if( $block->load( $ip, 0 ) ) {
522522 if( IP::isIPAddress($block->mAddress) && strpos($block->mAddress,'/') ) {
523523 $userpage = Title::makeTitle( NS_USER, $block->mAddress );
524 - $blocklog = $sk->makeKnownLinkObj( $logs, wfMsgHtml('blockedtitle'), 'type=block&page=' . urlencode( $userpage->getPrefixedText() ) );
 524+ $blocklog = $sk->makeKnownLinkObj( $logs, wfMsgHtml('checkuser-blocked'), 'type=block&page=' . urlencode( $userpage->getPrefixedText() ) );
525525 $s .= ' <strong>(' . $blocklog . ' - ' . $block->mAddress . ')</strong><br/>';
526526 } else {
527527 $userpage = Title::makeTitle( NS_USER, $ip );
528 - $blocklog = $sk->makeKnownLinkObj( $logs, wfMsgHtml('blockedtitle'), 'type=block&page=' . urlencode( $userpage->getPrefixedText() ) );
 528+ $blocklog = $sk->makeKnownLinkObj( $logs, wfMsgHtml('checkuser-blocked'), 'type=block&page=' . urlencode( $userpage->getPrefixedText() ) );
529529 $s .= ' <strong>(' . $blocklog . ')</strong><br/>';
530530 }
531531 }
Index: trunk/extensions/CheckUser/CheckUser.i18n.php
@@ -29,7 +29,8 @@
3030 'checkuser-nomatch' => 'No matches found.',
3131 'checkuser-check' => 'Check',
3232 'checkuser-log-fail' => 'Unable to add log entry',
33 - 'checkuser-nolog' => 'No log file found.'
 33+ 'checkuser-nolog' => 'No log file found.',
 34+ 'checkuser-blocked' => 'Blocked',
3435 );
3536 $wgCheckUserMessages['ar'] = array(
3637 'checkuser' => 'افحص مستخدم',

Status & tagging log