From 4e960ebdc3d783320fabf134700a4fc688907462 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 3 May 2005 12:27:30 +0000 Subject: [PATCH] * Implemented two new conveniance functions, getFormattedNamespaces(), getFormattedNsText(), useful for decresing development time. --- languages/Language.php | 43 +++++++++++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/languages/Language.php b/languages/Language.php index 0e5ee6799f..abfe818946 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -2089,7 +2089,23 @@ class Language { global $wgNamespaceNamesEn; return $wgNamespaceNamesEn; } - + + /** + * A convenience function that returns the same thing as + * getNamespaces() except with the array values changed to ' ' + * where it found '_', useful for producing output to be displayed + * e.g. in