From a7f06a21d89b871431c6b220c5e86ef98502bca5 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Thu, 19 Apr 2007 20:31:05 +0000 Subject: [PATCH] reapply relevant part of r20720 non-critical to database --- includes/SpecialContributions.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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( '' ); + } + } + } /** -- 2.20.1