registration: Fix namespaces added through the ExtensionProcessor
authorKunal Mehta <legoktm@gmail.com>
Wed, 26 Aug 2015 21:18:39 +0000 (14:18 -0700)
committerTim Starling <tstarling@wikimedia.org>
Thu, 27 Aug 2015 03:03:43 +0000 (03:03 +0000)
commit9df0672255afd255ce0af34f18b8ad596f3c3e35
tree98d328ccc0420c27a285a79288cdd3dea9d4c9e2
parentf18cc062d76b41604a055718695a143828b42c5a
registration: Fix namespaces added through the ExtensionProcessor

Using $wgExtraNamespaces overrides any localized namespaces with the
canonical form, which is not ideal.

Namespaces added through extension.json will now store the canonical
form and numerical id in a 'ExtensionNamespaces' attribute that is read
by MWNamespace::getCanonicalNamespaces().

Also fix the documentation on $wgExtraNamespaces, as using
$wgCanonicalNamespaceNames has not been possible since r85327.

Bug: T110389
Change-Id: I5bd9a7258f59d8c4a7ad0543d2115960fbea9b3a
includes/DefaultSettings.php
includes/MWNamespace.php
includes/registration/ExtensionProcessor.php