Move the timestamp into the message of the current revision link to make the link...
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 27 Aug 2008 18:23:03 +0000 (18:23 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 27 Aug 2008 18:23:03 +0000 (18:23 +0000)
includes/diff/DifferenceEngine.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index b75aeaa..7bfda1e 100644 (file)
@@ -764,10 +764,10 @@ CONTROL;
                $this->mNewPage = $this->mNewRev->getTitle();
                if( $this->mNewRev->isCurrent() ) {
                        $newLink = $this->mNewPage->escapeLocalUrl( 'oldid=' . $this->mNewid );
-                       $this->mPagetitle = htmlspecialchars( wfMsg( 'currentrev' ) );
+                       $this->mPagetitle = wfMsgHTML( 'currentrev-asof', $timestamp );
                        $newEdit = $this->mNewPage->escapeLocalUrl( 'action=edit' );
 
-                       $this->mNewtitle = "<a href='$newLink'>{$this->mPagetitle}</a> ($timestamp)";
+                       $this->mNewtitle = "<a href='$newLink'>{$this->mPagetitle}</a>";
                        $this->mNewtitle .= " (<a href='$newEdit'>" . wfMsgHtml( $editable ? 'editold' : 'viewsourceold' ) . "</a>)";
 
                } else {
index 45d2af5..2311646 100644 (file)
@@ -1208,6 +1208,7 @@ The reason given by $3 is ''$2''",
 'revnotfoundtext'       => 'The old revision of the page you asked for could not be found.
 Please check the URL you used to access this page.',
 'currentrev'            => 'Current revision',
+'currentrev-asof'       => 'Current revision as of $1',
 'revisionasof'          => 'Revision as of $1',
 'revision-info'         => 'Revision as of $1 by $2',
 'revision-info-current' => '-', # do not translate or duplicate this message to other languages
index e4a97d1..8ee9661 100644 (file)
@@ -583,6 +583,7 @@ $wgMessageStructure = array(
                'revnotfound',
                'revnotfoundtext',
                'currentrev',
+               'currentrev-asof',
                'revisionasof',
                'revision-info',
                'revision-info-current',