>
> Good call. This is part of the story. Part of what I had been doing in the
> wgExtensionFunctions
> hook was:
>
> 1) $wgCentralBannerDispatcher = "{$wgScript}/{$wgContLang->specialPage(
> 'BannerRandom' )}";
> --> Eventually makes a call to Language->getNamespaces() which then
> caches the loc
>
> 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::getCanonicalName
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
>
> 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 o
Woops, ignore what I just said. I misread variable names. That's
$wgExtraNamespaceNames.
*--*
*Tyler Romeo*
Stevens Institute of Technology, Class of 2015
Major in Computer Science
www.whizkidztech.com | tylerro...@gmail.com
On Tue, Jan 29, 2013 at 1:03 PM, Tyler Romeo wrote:
> This is because
This is because in Setup.php, $wgExtraNamespaces is added into the list of
canonical namespaces *before* the extension functions are called. If you
really need to have setup occur using $wgExtensionFunctions, you need to
add your extra namespaces to $wgCanonicalNamespaces as well as
$wgExtraNamespa
On Tue, Jan 29, 2013 at 12:58 PM, Matthew Walker wrote:
> Morning All,
>
> Need some help / a duck [1].
>
> Fundraising pushed some patches yesterday which introduced two new
> namespaces; CNBanner and CNBanner_talk. Ideally these would only be present
> on 'infrastructure' wikis that actually hos
Morning All,
Need some help / a duck [1].
Fundraising pushed some patches yesterday which introduced two new
namespaces; CNBanner and CNBanner_talk. Ideally these would only be present
on 'infrastructure' wikis that actually host banner content (so meta, test,
betameta) however I've been unable t