Add explicit array cast in Language::getGenderNsText
Similiar to r102414 Bug: T43194 Change-Id: I868b31b3862539d4782912d5b6e5d3ce5d9b4f60
This commit is contained in:
parent
acfe382ef5
commit
3800b2fff0
1 changed files with 1 additions and 1 deletions
|
|
@ -587,7 +587,7 @@ class Language {
|
|||
global $wgExtraGenderNamespaces;
|
||||
|
||||
$ns = $wgExtraGenderNamespaces +
|
||||
self::$dataCache->getItem( $this->mCode, 'namespaceGenderAliases' );
|
||||
(array)self::$dataCache->getItem( $this->mCode, 'namespaceGenderAliases' );
|
||||
|
||||
return isset( $ns[$index][$gender] ) ? $ns[$index][$gender] : $this->getNsText( $index );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue