Revert namespacebanner feature:
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 11 Jan 2006 00:09:42 +0000 (00:09 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 11 Jan 2006 00:09:42 +0000 (00:09 +0000)
* 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
languages/Language.php

index 1f0408f..9349499 100644 (file)
@@ -1367,18 +1367,6 @@ function wfGetSiteNotice() {
                        }
                }
        }
-       
-       # Namespacebanner
-       $key = wfMsg('namespacebanner') ;
-       $ns = $wgTitle->getNsText() . '-' ;
-       if ( $ns != "" ) {
-               $key .= str_replace ( '_' , '-' , $ns ) ;
-       }
-       $nsbanner = wfMsg ( $key ) ;
-       if ( $nsbanner != "&lt;".$key."&gt;" ) {
-               $notice .= '<div id="namespacebanner">' . $nsbanner . "</div>" ;
-       }
-       
        wfProfileOut( $fname );
        return $notice;
 }
index e2ccf79..04f6d33 100644 (file)
@@ -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',