From 07184e64d3028ccea89a16de910a852224700942 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Thu, 17 Sep 2009 14:13:12 +0000 Subject: [PATCH] Consistency tweak: Use pipe-separator for diff / hist like on RC and WL BTW: RC and WL shows (diff | hist) but this page (hist | diff). Another consistency candidate? --- includes/specials/SpecialContributions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 21b7e0b139..c664166ab9 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -418,7 +418,7 @@ class ContribsPager extends ReverseChronologicalPager { function __construct( $target, $namespace = false, $year = false, $month = false, $tagFilter = false ) { parent::__construct(); - foreach( explode( ' ', 'uctop diff newarticle rollbacklink diff hist rev-delundel' ) as $msg ) { + foreach( explode( ' ', 'uctop diff newarticle rollbacklink diff hist rev-delundel pipe-separator' ) as $msg ) { $this->messages[$msg] = wfMsgExt( $msg, array( 'escape') ); } $this->target = $target; @@ -559,7 +559,7 @@ class ContribsPager extends ReverseChronologicalPager { } # Is there a visible previous revision? if( !$rev->isDeleted(Revision::DELETED_TEXT) ) { - $difftext = '(' . $sk->linkKnown( + $difftext = $this->messages['pipe-separator'] . $sk->linkKnown( $page, $this->messages['diff'], array(), @@ -569,14 +569,14 @@ class ContribsPager extends ReverseChronologicalPager { ) ) . ')'; } else { - $difftext = '(' . $this->messages['diff'] . ')'; + $difftext = $this->messages['pipe-separator'] . $this->messages['diff'] . ')'; } $histlink = '('.$sk->linkKnown( $page, $this->messages['hist'], array(), array( 'action' => 'history' ) - ) . ')'; + ); $comment = $wgContLang->getDirMark() . $sk->revComment( $rev, false, true ); $date = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->rev_timestamp ), true ); -- 2.20.1