https://bugzilla.wikimedia.org/show_bug.cgi?id=56257

--- Comment #7 from Bartosz DziewoƄski <[email protected]> ---
Blaaaghh.

I spent way too much time tracking this down.

This is because the module is not loaded at all if its isKnownEmpty() method
returns true, and it does return true for ResourceLoaderWikiModule (of which
ResourceLoaderSiteModule is a subclass) if none of the pages it's supposed to
check exist (as returned by getPages() method).

Of course, on a new wiki none of these pages exist, so the module is not even
loaded.

The simplest solution that makes this work is adding `public function
isKnownEmpty( ResourceLoaderContext $context ) { return false; }` to
ResourceLoaderSiteModule, but this looks like an awful hack. We might want to
create a new module after all per comment 0, but I'd like Krinkle to comment on
this.

(I knew this is going to cause trouble, and Krinkle, I told you so. :P )

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to