// Define custom namespaces. Use these exact constant names.
$wgNamespaceAliases['Item'] = NS_MAIN;
$wgNamespaceAliases['Item_talk'] = NS_TALK;

// Tell Wikibase which namespace to use for which kind of entity
$wgWBRepoSettings['entityNamespaces'][CONTENT_MODEL_WIKIBASE_ITEM] = NS_MAIN;
define( 'WB_NS_PROPERTY', 122 );
define( 'WB_NS_PROPERTY_TALK', 123 );
$wgWBRepoSettings['entityNamespaces'][CONTENT_MODEL_WIKIBASE_PROPERTY] = WB_NS_PROPERTY;

// Register extra namespaces.
$wgWBNamespaces[WB_NS_PROPERTY] = 'Property';
$wgWBNamespaces[WB_NS_PROPERTY_TALK] = 'Property_talk';
$wgExtraNamespaces = $wgWBNamespaces + $wgExtraNamespaces;

// Define custom namespaces. Use these exact constant names.
$wgNamespaceAliases['Item'] = NS_MAIN;
$wgNamespaceAliases['Item_talk'] = NS_TALK;

// Tell Wikibase which namespace to use for which kind of entity
$wgWBRepoSettings['entityNamespaces']['wikibase-item'] = NS_MAIN;
define( 'WB_NS_PROPERTY', 122 );
define( 'WB_NS_PROPERTY_TALK', 123 );
$wgWBRepoSettings['entityNamespaces']['wikibase-property'] = WB_NS_PROPERTY;

// Register extra namespaces.
$wgWBNamespaces[WB_NS_PROPERTY] = 'Property';
$wgWBNamespaces[WB_NS_PROPERTY_TALK] = 'Property_talk';
$wgExtraNamespaces = $wgWBNamespaces + $wgExtraNamespaces;

Fix undefined values for wikidata config
Fix undefined values for wikidata config

CONTENT_MODEL_WIKIBASE_ITEM and CONTENT_MODEL_WIKIBASE_PROPERTY are not
necessarily defined at the point that the LocalSettings.php scripts are
being run.

Change-Id: I9e6ee6f15062920b9089fad68a34b2791c6ffbb5
