Fix incorrect documentation for Language::getFormattedNsText()
Change-Id: I16e9deaa5c962f177dee83785ac5142d4681b75f
This commit is contained in:
parent
32eec745d3
commit
fc816895cb
1 changed files with 6 additions and 2 deletions
|
|
@ -468,9 +468,13 @@ class Language {
|
|||
* getNsText() except with '_' changed to ' ', useful for
|
||||
* producing output.
|
||||
*
|
||||
* @param $index string
|
||||
* <code>
|
||||
* $mw_ns = $wgContLang->getFormattedNsText( NS_MEDIAWIKI_TALK );
|
||||
* echo $mw_ns; // prints 'MediaWiki talk'
|
||||
* </code>
|
||||
*
|
||||
* @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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue