diff --git a/languages/Language.php b/languages/Language.php index a72f98f6716..6f43b474bbe 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -468,9 +468,13 @@ class Language { * getNsText() except with '_' changed to ' ', useful for * producing output. * - * @param $index string + * + * $mw_ns = $wgContLang->getFormattedNsText( NS_MEDIAWIKI_TALK ); + * echo $mw_ns; // prints 'MediaWiki talk' + * * - * @return array + * @param int $index The array key of the namespace to return + * @return string Namespace name without underscores (empty string if namespace does not exist) */ function getFormattedNsText( $index ) { $ns = $this->getNsText( $index );