Angela's disclaimer in top links
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 6 Jan 2004 06:00:01 +0000 (06:00 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 6 Jan 2004 06:00:01 +0000 (06:00 +0000)
includes/Skin.php
languages/Language.php

index 7768c34..df9b9b8 100644 (file)
@@ -403,6 +403,7 @@ class Skin {
                global $wgOut, $wgTitle, $oldid, $action, $diff, $wgUser, $wgLang, $wgUseApproval ;
 
                $s = $this->printableLink();
+               if ( wfMsg ( "disclaimers" ) != "-" ) $s .= " | " . $this->makeKnownLink( wfMsg( "disclaimerpage" ), "disclaimers" ) ;
 
                if ( $wgOut->isArticle() ) {
                        if ( $wgTitle->getNamespace() == Namespace::getImage() ) {
@@ -891,6 +892,14 @@ class Skin {
                return $s;
        }
 
+
+      function disclaimerLink()
+       {
+               $s = $this->makeKnownLink( wfMsg( "disclaimerpage" ),
+                 wfMsg( "disclaimers" ) );
+               return $s;
+       }
+
        function editThisPage()
        {
                global $wgOut, $wgTitle, $oldid, $redirect, $diff;
index 7e4c67e..328e867 100644 (file)
@@ -28,6 +28,9 @@ define("MAG_END", 15);
 # NOTE: To turn off "Current Events" in the sidebar,
 # set "currentevents" => "-"
 
+# NOTE: To turn off "Disclaimers" in the title links,
+# set "disclaimers" => "-"
+
 # The names of the namespaces can be set here, but the numbers
 # are magical, so don't change or move them!  The Namespace class
 # encapsulates some of the magic-ness.
@@ -396,6 +399,8 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
 "mypage"               => "My page",
 "mytalk"               => "My talk",
 "currentevents" => "Current events",
+"disclaimers" => "Disclaimers",
+"disclaimerpage"               => "$wgMetaNamespace:General_disclaimer",
 "errorpagetitle" => "Error",
 "returnto"             => "Return to $1.",
 "fromwikipedia"        => "From $wgSitename, the free encyclopedia.",