From: Aaron Schulz Date: Mon, 18 Jun 2007 18:03:38 +0000 (+0000) Subject: *Add username and talk to newbie contribs (bug 10306) X-Git-Tag: 1.31.0-rc.0~52506 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=169a33ab1a655abdf620bdf76c5f76fda4e71801;p=lhc%2Fweb%2Fwiklou.git *Add username and talk to newbie contribs (bug 10306) --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index d2d9b03f8f..74a6a95f1e 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -138,6 +138,13 @@ class ContribsPager extends IndexPager { $comment = $sk->revComment( $rev ); $d = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->rev_timestamp ), true ); + + if( $this->target == 'newbies' ) { + $userlink = ' . . ' . $sk->userLink( $row->rev_user, $row->rev_user_text ); + $userlink .= ' (' . $sk->userTalkLink( $row->rev_user, $row->rev_user_text ) . ') '; + } else { + $userlink = ''; + } if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { $d = '' . $d . ''; @@ -149,7 +156,7 @@ class ContribsPager extends IndexPager { $mflag = ''; } - $ret = "{$d} {$histlink} {$difftext} {$mflag} {$link} {$comment} {$topmarktext}"; + $ret = "{$d} {$histlink} {$difftext} {$mflag} {$link}{$userlink}{$comment} {$topmarktext}"; if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { $ret .= ' ' . wfMsgHtml( 'deletedrev' ); }