Last modified: 2011-06-14 22:47:00 UTC
wgNamespaceIds in JavaScript doesn't include canonical namespaces. They should be added in a similar way that Language->getNamespaceIds does it for the localized namespaces and the namespace aliases. Currently problematic in UploadWizard's mw.Title constructor, when .setNamespace() is used with a canonical namespace on a non-English content-language wiki. Example: On a German wiki "var foo = new mw.Title('bar').setNamespace('file')" will throw Error: Unrecognized canonical namespace: file ...since wgNamespaceIds only contains localized namespaces + namespace aliases, not canonical ones (which is in contrary to the assumption that has been made in various places). Assigning to myself, will be fixed together with bug 29397 (integrate mw.Title in core)
*** This bug has been marked as a duplicate of bug 25375 ***