Got the following error when updating SMW wiki to SMW master: http://pastebin.com/HY5gMiam
Modification of settings using the namespace consonants still needs to be
delayed. I had to do this (below) 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.
We likely cannot get rid of this, in which case it should be clearly documented.
Version: master
Severity: blocker