From: Raimond Spekking Date: Thu, 17 Sep 2009 14:13:12 +0000 (+0000) Subject: Consistency tweak: Use pipe-separator for diff / hist like on RC and WL X-Git-Tag: 1.31.0-rc.0~39681 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=07184e64d3028ccea89a16de910a852224700942;p=lhc%2Fweb%2Fwiklou.git 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? --- 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 );