From 63d37a2e089bb54798d50c7b54b795171c6fecb6 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 11 Jan 2006 00:09:42 +0000 Subject: [PATCH] Revert namespacebanner feature: * causes fatal error during database error reporting * indirect keys won't show up in allmessages; check this for correctness and safety * no release notes entry for new feature! --- includes/GlobalFunctions.php | 12 ------------ languages/Language.php | 1 - 2 files changed, 13 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 1f0408f783..9349499a02 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1367,18 +1367,6 @@ function wfGetSiteNotice() { } } } - - # Namespacebanner - $key = wfMsg('namespacebanner') ; - $ns = $wgTitle->getNsText() . '-' ; - if ( $ns != "" ) { - $key .= str_replace ( '_' , '-' , $ns ) ; - } - $nsbanner = wfMsg ( $key ) ; - if ( $nsbanner != "<".$key.">" ) { - $notice .= '
' . $nsbanner . "
" ; - } - wfProfileOut( $fname ); return $notice; } diff --git a/languages/Language.php b/languages/Language.php index e2ccf799f7..04f6d33fd1 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -505,7 +505,6 @@ See $1.', 'restorelink' => '$1 deleted edits', 'feedlinks' => 'Feed:', 'sitenotice' => '-', # the equivalent to wgSiteNotice -'namespacebanner' => 'Namespacebanner', # Short words for each namespace, by default used in the 'article' tab in monobook 'nstab-main' => 'Article', -- 2.20.1