Index: trunk/extensions/CheckUser/CheckUser_body.php |
— | — | @@ -372,6 +372,7 @@ |
373 | 373 | } |
374 | 374 | |
375 | 375 | $logs = SpecialPage::getTitleFor( 'Log' ); |
| 376 | + $blocklist = SpecialPage::getTitleFor( 'Ipblocklist' ); |
376 | 377 | $s = '<ul>'; |
377 | 378 | foreach( $users_edits as $name => $count ) { |
378 | 379 | $s .= '<li>'; |
— | — | @@ -390,11 +391,14 @@ |
391 | 392 | if( IP::isIPAddress($block->mAddress) && strpos($block->mAddress,'/') ) { |
392 | 393 | $userpage = Title::makeTitle( NS_USER, $block->mAddress ); |
393 | 394 | $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>'; |
395 | 399 | } else { |
396 | 400 | $userpage = Title::makeTitle( NS_USER, $name ); |
397 | 401 | $blocklog = $sk->makeKnownLinkObj( $logs, wfMsgHtml('checkuser-blocked'), 'type=block&page=' . urlencode( $userpage->getPrefixedText() ) ); |
398 | | - $s .= '<strong>(' . $blocklog . ')</strong><br/>'; |
| 402 | + $s .= '<strong>(' . $blocklog . ')</strong>'; |
399 | 403 | } |
400 | 404 | } |
401 | 405 | $s .= '<ol>'; |