From: Arne Heizmann Date: Wed, 1 Sep 2004 03:01:37 +0000 (+0000) Subject: display "view current revision" link on old revisions. (This means that the X-Git-Tag: 1.5.0alpha1~2187 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=a67ae36cfa5adf19a7dea73e1208e1316d896746;p=lhc%2Fweb%2Fwiklou.git 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.) --- 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',