(bug 15498) Provide links to revisions listed at the Special:Contributions page
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 3 Jan 2009 06:09:09 +0000 (06:09 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 3 Jan 2009 06:09:09 +0000 (06:09 +0000)
includes/specials/SpecialContributions.php

index a6febdb..3d8c18d 100644 (file)
@@ -490,7 +490,8 @@ class ContribsPager extends ReverseChronologicalPager {
                $histlink='('.$sk->makeKnownLinkObj( $page, $this->messages['hist'], 'action=history' ) . ')';
 
                $comment = $wgContLang->getDirMark() . $sk->revComment( $rev, false, true );
-               $d = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->rev_timestamp ), true );
+               $date = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->rev_timestamp ), true );
+               $d = $sk->makeKnownLinkObj( $page, $date, 'oldid='.intval($row->rev_id) );
 
                if( $this->target == 'newbies' ) {
                        $userlink = ' . . ' . $sk->userLink( $row->rev_user, $row->rev_user_text );