Consistency tweak: coalesce tool links with pipes instead of () ()
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 13 Oct 2009 15:47:57 +0000 (15:47 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 13 Oct 2009 15:47:57 +0000 (15:47 +0000)
includes/HistoryPage.php

index 8c09e14..f5f6211 100644 (file)
@@ -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' ) ) {