Index: trunk/phase3/includes/SpecialContributions.php |
— | — | @@ -319,6 +319,21 @@ |
320 | 320 | |
321 | 321 | $wgOut->addHTML( "</ul>\n" ); |
322 | 322 | $wgOut->addHTML( "<p>{$prevnextbits}</p>\n" ); |
| 323 | + |
| 324 | + # If there were contributions, and it was a valid user or IP, show |
| 325 | + # the appropriate "footer" message - WHOIS tools, etc. |
| 326 | + if( count( $contribs ) > 0 && $target != 'newbies' && $nt instanceof Title ) { |
| 327 | + $message = IP::isIPAddress( $target ) |
| 328 | + ? 'sp-contributions-footer-anon' |
| 329 | + : 'sp-contributions-footer'; |
| 330 | + $text = wfMsg( $message, $target ); |
| 331 | + if( !wfEmptyMsg( $message, $text ) && $text != '-' ) { |
| 332 | + $wgOut->addHtml( '<div class="mw-contributions-footer">' ); |
| 333 | + $wgOut->addWikiText( wfMsg( $message, $target ) ); |
| 334 | + $wgOut->addHtml( '</div>' ); |
| 335 | + } |
| 336 | + } |
| 337 | + |
323 | 338 | } |
324 | 339 | |
325 | 340 | /** |