}
/* 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,
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',