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

--- Comment #35 from MWJames <jamesin.hongkon...@gmail.com> ---
Right now I'm unable to provide a false/positive test on Travis-CI
(testExtraNamespacesOnTravisNamespace [1]) because I can't get Travis to behave
as it is does locally but with the above change and the proposed solution [1]
the unit test fails and doing a on-wiki hand-to-hand test fails equally
because:

When the Composer is autoloading SemanticMediaWiki.php it is registering a
$GLOBALS['wgExtensionFunctions'][] = function() {  SMW\Setup ... } which is
executed before the LocalSettings [2] which means that by the time
LocalSettings adjusts the values of $smwgNamespacesWithSemanticLinks, values
have been already invoked in SMW\Setup. This means that any behavioral change
in LocalSettings that is put into a function() {  ... } is executed after
SMW\setup is run and therefore is not recognised by SMW.

[1] https://github.com/SemanticMediaWiki/SemanticMediaWiki/tree/tests

[2] $GLOBALS['wgExtensionFunctions'][] = function() {
    $GLOBALS['smwgNamespacesWithSemanticLinks'] = array( ... )
}

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

Reply via email to