From 621feec27fe3671d1bf80533b96368cedb9a2fa3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 3 May 2005 12:43:50 +0000 Subject: [PATCH] * ARG! There's more of it! --- includes/SpecialMaintenance.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/SpecialMaintenance.php b/includes/SpecialMaintenance.php index d9d0fc3f92..a52f2fd132 100644 --- a/includes/SpecialMaintenance.php +++ b/includes/SpecialMaintenance.php @@ -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 -- 2.20.1