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

--- Comment #39 from Jeroen De Dauw <[email protected]> ---
James, modification of things using the namespace consonants still needs to be
delayed. I updated SMW wiki to SMW master just now, and things broke because
localSettings was using these constants immediately.

I had to do this to address the issue, and presumably there are quite a few
more settings in which those constants might be used, and that thus need to be
modified at a later point.

$wgExtensionFunctions[] = function() {
        global $wgContentNamespaces;
        $wgContentNamespaces = array( NS_MAIN, NS_HELP, NS_CATEGORY,
SMW_NS_PROPERTY, SMW_NS_TYPE, SMW_NS_CONCEPT );

        // setup namespace search
        global $wgNamespacesToBeSearchedDefault;
        $wgNamespacesToBeSearchedDefault[NS_HELP] = true;
        $wgNamespacesToBeSearchedDefault[SMW_NS_TYPE] = true;
        $wgNamespacesToBeSearchedDefault[SMW_NS_PROPERTY] = true;

        // setup namespace protection for documentation
        global $wgNamespaceProtection;
        $wgNamespaceProtection[NS_HELP] = array('docu');
        $wgNamespaceProtection[SMW_NS_TYPE] = array('docu');
        $wgNamespaceProtection[NS_PROJECT] = array('docu');

        return true;
};

In case those settings are SMW specific, I'm guessing we run into the earlier
issue again, where SMW starts using the config before the delayed modification
in LS happens.

-- 
You are receiving this mail because:
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