Language: Don't return aliases to namespaces that don't exist
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 2 Oct 2018 21:18:38 +0000 (17:18 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 2 Oct 2018 21:18:38 +0000 (17:18 -0400)
commit0adc109608d7294881c3d3b4a71d4a26df7c1bd1
tree3828e1994b0cf23ce9156083f66b16d0cfe4291b
parent99dcd46f00f5153ed74cebfbafc368e8f3b38f02
Language: Don't return aliases to namespaces that don't exist

On a multi-wiki server using a l10n cache, the cache will probably
include aliases from all extensions enabled for any wiki while the
namespaces themselves will only be defined on the wikis where the
extension is loaded.

Bug: T206030
Change-Id: I985dfa3eb17944d5fc0c5be0979be21504fb1341
languages/Language.php