display "view current revision" link on old revisions. (This means that the
authorArne Heizmann <timwi@users.mediawiki.org>
Wed, 1 Sep 2004 03:01:37 +0000 (03:01 +0000)
committerArne Heizmann <timwi@users.mediawiki.org>
Wed, 1 Sep 2004 03:01:37 +0000 (03:01 +0000)
Classic skin will have it twice in different places, but I hope people won't mind.)

includes/Article.php
languages/Language.php

index c0e0b8e..bd2031e 100644 (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,
index 57d8995..b09277f 100644 (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',