display "view current revision" link on old revisions. (This means that the

Classic skin will have it twice in different places, but I hope people won't mind.)
This commit is contained in:
Arne Heizmann 2004-09-01 03:01:37 +00:00
parent 7eaaa7f7f5
commit a67ae36cfa
2 changed files with 7 additions and 4 deletions

View file

@ -1746,11 +1746,13 @@ class Article {
}
/* private */ function setOldSubtitle() {
global $wgLang, $wgOut;
global $wgLang, $wgOut, $wgUser;
$td = $wgLang->timeanddate( $this->mTimestamp, true );
$r = wfMsg( 'revisionasof', $td );
$wgOut->setSubtitle( "({$r})" );
$sk = $wgUser->getSkin();
$lnk = $sk->makeKnownLinkObj ( $this->mTitle, wfMsg( 'revisionasoflink' ) );
$r = wfMsg( 'revisionasof', $td, $lnk );
$wgOut->setSubtitle( $r );
}
# This function is called right before saving the wikitext,

View file

@ -677,7 +677,8 @@ guidelines</a>.",
Please check the URL you used to access this page.\n",
'loadhist' => 'Loading page history',
'currentrev' => 'Current revision',
'revisionasof' => "Revision as of $1",
'revisionasof' => "(Revision as of $1; $2)",
'revisionasoflink' => "view current revision",
'cur' => 'cur',
'next' => 'next',
'last' => 'last',