From: Raimond Spekking Date: Thu, 19 Apr 2007 20:31:05 +0000 (+0000) Subject: reapply relevant part of r20720 X-Git-Tag: 1.31.0-rc.0~53347 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=a7f06a21d89b871431c6b220c5e86ef98502bca5;p=lhc%2Fweb%2Fwiklou.git reapply relevant part of r20720 non-critical to database --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index bc448882a2..8f342cfcdb 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -319,6 +319,21 @@ function wfSpecialContributions( $par = null ) { $wgOut->addHTML( "\n" ); $wgOut->addHTML( "

{$prevnextbits}

\n" ); + + # If there were contributions, and it was a valid user or IP, show + # the appropriate "footer" message - WHOIS tools, etc. + if( count( $contribs ) > 0 && $target != 'newbies' && $nt instanceof Title ) { + $message = IP::isIPAddress( $target ) + ? 'sp-contributions-footer-anon' + : 'sp-contributions-footer'; + $text = wfMsg( $message, $target ); + if( !wfEmptyMsg( $message, $text ) && $text != '-' ) { + $wgOut->addHtml( '' ); + } + } + } /**