r23075 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23074‎ | r23075 | r23076 >
Date:18:03, 18 June 2007
Author:aaron
Status:old
Tags:
Comment:
*Add username and talk to newbie contribs (bug 10306)
Modified paths:
  • /trunk/phase3/includes/SpecialContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialContributions.php
@@ -138,6 +138,13 @@
139139
140140 $comment = $sk->revComment( $rev );
141141 $d = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->rev_timestamp ), true );
 142+
 143+ if( $this->target == 'newbies' ) {
 144+ $userlink = ' . . ' . $sk->userLink( $row->rev_user, $row->rev_user_text );
 145+ $userlink .= ' (' . $sk->userTalkLink( $row->rev_user, $row->rev_user_text ) . ') ';
 146+ } else {
 147+ $userlink = '';
 148+ }
142149
143150 if( $rev->isDeleted( Revision::DELETED_TEXT ) ) {
144151 $d = '<span class="history-deleted">' . $d . '</span>';
@@ -149,7 +156,7 @@
150157 $mflag = '';
151158 }
152159
153 - $ret = "{$d} {$histlink} {$difftext} {$mflag} {$link} {$comment} {$topmarktext}";
 160+ $ret = "{$d} {$histlink} {$difftext} {$mflag} {$link}{$userlink}{$comment} {$topmarktext}";
154161 if( $rev->isDeleted( Revision::DELETED_TEXT ) ) {
155162 $ret .= ' ' . wfMsgHtml( 'deletedrev' );
156163 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r23087Merged revisions 23050-23086 via svnmerge from...david03:14, 19 June 2007

Status & tagging log