r25333 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25332‎ | r25333 | r25334 >
Date:02:02, 31 August 2007
Author:aaron
Status:old
Tags:
Comment:
*Link to autoblocks for 'get users' too.
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -372,6 +372,7 @@
373373 }
374374
375375 $logs = SpecialPage::getTitleFor( 'Log' );
 376+ $blocklist = SpecialPage::getTitleFor( 'Ipblocklist' );
376377 $s = '<ul>';
377378 foreach( $users_edits as $name => $count ) {
378379 $s .= '<li>';
@@ -390,11 +391,14 @@
391392 if( IP::isIPAddress($block->mAddress) && strpos($block->mAddress,'/') ) {
392393 $userpage = Title::makeTitle( NS_USER, $block->mAddress );
393394 $blocklog = $sk->makeKnownLinkObj( $logs, wfMsgHtml('checkuser-blocked'), 'type=block&page=' . urlencode( $userpage->getPrefixedText() ) );
394 - $s .= '<strong>(' . $blocklog . ' - ' . $block->mAddress . ')</strong><br/>';
 395+ $s .= ' <strong>(' . $blocklog . ' - ' . $block->mAddress . ')</strong>';
 396+ } else if( $block->mAuto ) {
 397+ $blocklog = $sk->makeKnownLinkObj( $blocklist, wfMsgHtml('checkuser-blocked'), 'ip=' . urlencode( "#$block->mId" ) );
 398+ $s .= ' <strong>(' . $blocklog . ')</strong>';
395399 } else {
396400 $userpage = Title::makeTitle( NS_USER, $name );
397401 $blocklog = $sk->makeKnownLinkObj( $logs, wfMsgHtml('checkuser-blocked'), 'type=block&page=' . urlencode( $userpage->getPrefixedText() ) );
398 - $s .= '<strong>(' . $blocklog . ')</strong><br/>';
 402+ $s .= '<strong>(' . $blocklog . ')</strong>';
399403 }
400404 }
401405 $s .= '<ol>';

Status & tagging log