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

--- Comment #41 from MWJames <[email protected]> ---
(In reply to comment #39)
> 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.

Good catch, needs proper documentation since the SNW-NS constants [0] are
delayed due to $smwgNamespaceIndex being a prerequisite and its initialization
has to happen first before [1] can be processed.

Configurations like [2] related to [0] should be delayed using [3].

$smwgNamespacesWithSemanticLinks should not be delayed and should not hold a
[0] reference otherwise [4] will be displayed.

[0] SMW_NS_PROPERTY, SMW_NS_TYPE, SMW_NS_CONCEPT 

[1] SMW\NamespaceCustomizer 

[2] Known configuration that can hold a SMW NS reference $wgContentNamespaces,
$wgNamespacesToBeSearchedDefault and $wgNamespaceProtection

[3] $GLOBALS['wgExtensionFunctions'][] = function() {

    // Add settings relevant for after SMW intialization

    $GLOBALS['wgNamespacesToBeSearchedDefault'] = array(
        SMW_NS_PROPERTY => true,
    );

}

[4] Notice: Use of undefined constant SMW_NS_PROPERTY

-- 
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