From: Raimond Spekking Date: Wed, 27 Aug 2008 18:23:03 +0000 (+0000) Subject: Move the timestamp into the message of the current revision link to make the link... X-Git-Tag: 1.31.0-rc.0~45617 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=e9ad9393cff860107b534588c33e79b4fe319899;p=lhc%2Fweb%2Fwiklou.git Move the timestamp into the message of the current revision link to make the link consistent with the link to the previous version on the left side --- diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index b75aeaad49..7bfda1e772 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -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 = "{$this->mPagetitle} ($timestamp)"; + $this->mNewtitle = "{$this->mPagetitle}"; $this->mNewtitle .= " (" . wfMsgHtml( $editable ? 'editold' : 'viewsourceold' ) . ")"; } else { diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 45d2af521c..23116469ac 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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 diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index e4a97d1185..8ee9661bb5 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -583,6 +583,7 @@ $wgMessageStructure = array( 'revnotfound', 'revnotfoundtext', 'currentrev', + 'currentrev-asof', 'revisionasof', 'revision-info', 'revision-info-current',