* ARG! There's more of it!
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 3 May 2005 12:43:50 +0000 (12:43 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 3 May 2005 12:43:50 +0000 (12:43 +0000)
includes/SpecialMaintenance.php

index d9d0fc3..a52f2fd 100644 (file)
@@ -9,9 +9,8 @@
  * shortcut to get the current language "special" namespace name
  */
 function sns() {
-       global $wgContLang ;
-       $ns = $wgContLang->getNamespaces() ;
-       return $ns[NS_SPECIAL] ;
+       global $wgContLang;
+       return $wgContLang->getNsText(NS_SPECIAL);
 }
 
 
@@ -53,7 +52,6 @@ function wfSpecialMaintenance( $par=NULL ) {
        if ( !is_null( $submitmll ) ) return wfSpecialMissingLanguageLinks() ;
 
        $sk = $wgUser->getSkin();
-       $ns = $wgContLang->getNamespaces() ;
 
        # Generate page output