Well, the only reason I can think of this happening is because something
must have called MWNamespace::getCanonicalNamespaces before your extension
initialized, thus causing the cache it has to be filled without the
extension's namespaces. Maybe try calling
MWNamespace::getCanonicalNamespaces( true ) to force regeneration?
*--*
*Tyler Romeo*
Stevens Institute of Technology, Class of 2015
Major in Computer Science
www.whizkidztech.com | tylerromeo(a)gmail.com
On Tue, Jan 29, 2013 at 1:31 PM, Matthew Walker <mwalker(a)wikimedia.org>wrote;wrote:
Is there a reason you can't just add them to $wgExtraNamespaces?
As long as the wikis are known (meta, testwiki, etc), then you can
just apply the namespaces to those wikis.
This is what I'm doing. It just happens in the setup script,
CentralNotice.php. Ideally I would gate the addition of the namespaces on
if the user set the option to use the translate extension.
If you're suggesting that I just add them to wmf-config/CommonSettings.php
as a manual step for those particular wikis in our cluster; I'd rather not
-- the namespaces are something that CentralNotice + translate requires, so
I feel should properly reside in the extension config, not the site config.
That being said; if there is no programmatic way to add namespaces post
init, I'll do it the hacky way. I just want to make sure that this is
the consensus practice on how to do this.
~Matt Walker
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l