From 169a33ab1a655abdf620bdf76c5f76fda4e71801 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 18 Jun 2007 18:03:38 +0000 Subject: [PATCH] *Add username and talk to newbie contribs (bug 10306) --- includes/SpecialContributions.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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' ); } -- 2.20.1