From a67ae36cfa5adf19a7dea73e1208e1316d896746 Mon Sep 17 00:00:00 2001 From: Arne Heizmann Date: Wed, 1 Sep 2004 03:01:37 +0000 Subject: [PATCH] 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.) --- includes/Article.php | 8 +++++--- languages/Language.php | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index c0e0b8e496..bd2031eef4 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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, diff --git a/languages/Language.php b/languages/Language.php index 57d8995178..b09277f2af 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -677,7 +677,8 @@ guidelines.", 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', -- 2.20.1