From: Raimond Spekking Date: Tue, 13 Oct 2009 15:47:57 +0000 (+0000) Subject: Consistency tweak: coalesce tool links with pipes instead of () () X-Git-Tag: 1.31.0-rc.0~39298 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=ef1b93df18338b8c5980a4e4c54238914e40350f;p=lhc%2Fweb%2Fwiklou.git Consistency tweak: coalesce tool links with pipes instead of () () --- diff --git a/includes/HistoryPage.php b/includes/HistoryPage.php index 8c09e1446b..f5f6211940 100644 --- a/includes/HistoryPage.php +++ b/includes/HistoryPage.php @@ -50,7 +50,7 @@ class HistoryPage { function preCacheMessages() { // Precache various messages if( !isset( $this->message ) ) { - $msgs = array( 'cur', 'last', 'rev-delundel' ); + $msgs = array( 'cur', 'last', 'rev-delundel', 'pipe-separator' ); foreach( $msgs as $msg ) { $this->message[$msg] = wfMsgExt( $msg, array( 'escapenoentities') ); } @@ -463,11 +463,16 @@ class HistoryPager extends ReverseChronologicalPager { $curlink = $this->curLink( $rev, $latest ); $lastlink = $this->lastLink( $rev, $next, $counter ); $diffButtons = $this->diffButtons( $rev, $firstInList, $counter ); + $histLinks = Html::rawElement( + 'span', + array( 'class' => 'mw-history-histlinks' ), + '(' . $curlink . $this->historyPage->message['pipe-separator'] . $lastlink . ') ' + ); + $s = $histLinks . $diffButtons; + $link = $this->revLink( $rev ); $classes = array(); - $s = "($curlink) ($lastlink) $diffButtons"; - if( $wgUser->isAllowed( 'deleterevision' ) ) { // Don't show useless link to people who cannot hide revisions if( !$rev->getVisibility() && !$wgUser->isAllowed( 'deleterevision' ) ) {