Page MenuHomePhabricator

$smwgDefaultStore should test for SMW\SQLStore\SQLStore
Closed, DuplicatePublic

Description

Hello,

The SMW setting $smwgDefaultStore is tested in SDD's code with values that are deprecated. see https://www.semantic-mediawiki.org/wiki/Help:$smwgDefaultStore

Everywhere we have the following code:

		if ( $smwgDefaultStore === 'SMWSQLStore3' || $smwgDefaultStore === 'SMWSparqlStore' ) {
			return 'smw_object_ids';
		} else {
			return 'smw_ids';
		}

It should now read:

		if ( $smwgDefaultStore === 'SMWSQLStore3' ||
                     $smwgDefaultStore === 'SMWSparqlStore' ||
                     $smwgDefaultStore === 'SMW\SQLStore\SQLStore'  ||
                     $smwgDefaultStore === 'SMW\SPARQLStore\SPARQLStore') {
			return 'smw_object_ids';
		} else {
			return 'smw_ids';
		}

Thanks !