From d2dbe2607bbd0a4cfe410567e28b82b53c6206d8 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 6 Jan 2004 06:00:01 +0000 Subject: [PATCH] Angela's disclaimer in top links --- includes/Skin.php | 9 +++++++++ languages/Language.php | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/includes/Skin.php b/includes/Skin.php index 7768c3484d..df9b9b8069 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -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; diff --git a/languages/Language.php b/languages/Language.php index 7e4c67e511..328e867c27 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -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 (alternative: like this?).", "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.", -- 2.20.1