From ef1b93df18338b8c5980a4e4c54238914e40350f Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Tue, 13 Oct 2009 15:47:57 +0000 Subject: [PATCH] Consistency tweak: coalesce tool links with pipes instead of () () --- includes/HistoryPage.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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' ) ) { -- 2.20.1