r21392 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21391‎ | r21392 | r21393 >
Date:20:31, 19 April 2007
Author:raymond
Status:old
Tags:
Comment:
reapply relevant part of r20720
non-critical to database
Modified paths:
  • /trunk/phase3/includes/SpecialContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialContributions.php
@@ -319,6 +319,21 @@
320320
321321 $wgOut->addHTML( "</ul>\n" );
322322 $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+
323338 }
324339
325340 /**

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r20720(bug 9397) Introduce "sp-contributions-footer" and "sp-contributions-footer-a...robchurch23:08, 26 March 2007