From 9e56fc95eb4e6d5c485e14bb7d4bd1507b23f0a6 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Sun, 20 Jul 2008 17:42:14 +0000 Subject: [PATCH] (bug 2971) Standardize format of links to hist/diff in Special:Contributions. --- RELEASE-NOTES | 1 + includes/specials/SpecialContributions.php | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ac1d4ef87e..740d874d38 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -188,6 +188,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN the database is potentially queried * (bug 9736) Redirects on Special:Fewestrevisions are now marked as such. * New date/time formats in Cs localization according to ČSN and PČP. +* (bug 2971) Standardize format of links to hist/diff in Special:Contributions. === Bug fixes in 1.13 === diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 4a131f15b8..bba3f53025 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -162,7 +162,7 @@ class ContribsPager extends ReverseChronologicalPager { if( $row->rev_id == $row->page_latest ) { $topmarktext .= '' . $this->messages['uctop'] . ''; if( !$row->page_is_new ) { - $difftext .= '(' . $sk->makeKnownLinkObj( $page, $this->messages['diff'], 'diff=0' ) . ')'; + $difftext .= $sk->makeKnownLinkObj( $page, $this->messages['diff'], 'diff=0' ); } else { $difftext .= $this->messages['newarticle']; } @@ -175,11 +175,11 @@ class ContribsPager extends ReverseChronologicalPager { } # Is there a visible previous revision? if( $rev->userCan(Revision::DELETED_TEXT) ) { - $difftext = '(' . $sk->makeKnownLinkObj( $page, $this->messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')'; + $difftext = $sk->makeKnownLinkObj( $page, $this->messages['diff'], 'diff=prev&oldid='.$row->rev_id ); } else { - $difftext = '(' . $this->messages['diff'] . ')'; + $difftext = $this->messages['diff']; } - $histlink='('.$sk->makeKnownLinkObj( $page, $this->messages['hist'], 'action=history' ) . ')'; + $histtext = $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 ); @@ -207,7 +207,7 @@ class ContribsPager extends ReverseChronologicalPager { $mflag = ''; } - $ret = "{$d} {$histlink} {$difftext} {$nflag}{$mflag} {$link}{$userlink}{$comment} {$topmarktext}"; + $ret = "$d ($difftext; $histtext) {$nflag}{$mflag} {$link}{$userlink}{$comment} $topmarktext"; if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { $ret .= ' ' . wfMsgHtml( 'deletedrev' ); } -- 2.20.1