Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -395,6 +395,7 @@ |
396 | 396 | } else { |
397 | 397 | $out->addWikiMsg( 'logempty' ); |
398 | 398 | } |
| 399 | + return $pager->getNumRows(); |
399 | 400 | } |
400 | 401 | |
401 | 402 | /** |
Index: trunk/phase3/includes/specials/SpecialBlockip.php |
— | — | @@ -419,7 +419,11 @@ |
420 | 420 | |
421 | 421 | function showLogFragment( $out, $title ) { |
422 | 422 | $out->addHtml( Xml::element( 'h2', NULL, LogPage::logName( 'block' ) ) ); |
423 | | - LogEventsList::showLogExtract( $out, 'block', $title->getPrefixedText() ); |
| 423 | + $count = LogEventsList::showLogExtract( $out, 'block', $title->getPrefixedText(), '', 10 ); |
| 424 | + if($count > 10){ |
| 425 | + $logtitle = Title::newFromText('Special:Log/block'); |
| 426 | + $out->addHtml( Xml::element( 'a', array('href' => $logtitle->getFullURL(array('type' => 'block', 'page' => $title->getPrefixedText()))), wfMsg('blocklog-header') ) ); |
| 427 | + } |
424 | 428 | } |
425 | 429 | |
426 | 430 | /** |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2518,6 +2518,7 @@ |
2519 | 2519 | 'autoblocker' => 'Autoblocked because your IP address has been recently used by "[[User:$1|$1]]". |
2520 | 2520 | The reason given for $1\'s block is: "$2"', |
2521 | 2521 | 'blocklogpage' => 'Block log', |
| 2522 | +'blocklog-header' => 'Full block log', |
2522 | 2523 | 'blocklogentry' => 'blocked [[$1]] with an expiry time of $2 $3', |
2523 | 2524 | 'blocklogtext' => 'This is a log of user blocking and unblocking actions. |
2524 | 2525 | Automatically blocked IP addresses are not listed. |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -206,6 +206,7 @@ |
207 | 207 | even if there are broken link records with source article id 0 in the database |
208 | 208 | * (bug 15598) Special:Newpages default limit uses user preference for recentchanges |
209 | 209 | limit instead of hardcoded 50. |
| 210 | +* (bug 14638) Special:Blockip now provides a link to the block log if the user has been blocked more than 10 times. Patch by Matt Johnston. |
210 | 211 | |
211 | 212 | === API changes in 1.14 === |
212 | 213 | |