$infoMap = [];
// Make sure at least the current wiki is set, for simple configurations.
// This also makes it the first in the map, which is useful for common cases.
$infoMap = [];
// Make sure at least the current wiki is set, for simple configurations.
// This also makes it the first in the map, which is useful for common cases.
$infoMap[$wikiId] = [
'url' => $wgCanonicalServer,
'parts' => wfParseUrl( $wgCanonicalServer )
$infoMap[$wikiId] = [
'url' => $wgCanonicalServer,
'parts' => wfParseUrl( $wgCanonicalServer )
- if ( !in_array( $domain->getSchema(), [ null, 'mediawiki' ], true ) ) {
+ if ( !in_array( $domain->getSchema(), [ null, 'mediawiki', 'dbo' ], true ) ) {
// Include the schema if it is set and is not the default placeholder.
// This means a site admin may have specifically taylored the schemas.
// Domain IDs might use the form <DB>-<project>-<language>, meaning that
// Include the schema if it is set and is not the default placeholder.
// This means a site admin may have specifically taylored the schemas.
// Domain IDs might use the form <DB>-<project>-<language>, meaning that
global $wgDBname, $wgDBmwschema, $wgDBprefix;
// Avoid invoking LBFactory to avoid any chance of recursion
return new DatabaseDomain( $wgDBname, $wgDBmwschema, (string)$wgDBprefix );
global $wgDBname, $wgDBmwschema, $wgDBprefix;
// Avoid invoking LBFactory to avoid any chance of recursion
return new DatabaseDomain( $wgDBname, $wgDBmwschema, (string)$wgDBprefix );
- if ( !in_array( $curDomain->getSchema(), [ null, 'mediawiki' ], true ) ) {
+ if ( !in_array( $curDomain->getSchema(), [ null, 'mediawiki', 'dbo' ], true ) ) {
// Include the schema if it is set and is not the default placeholder.
// This means a site admin may have specifically taylored the schemas.
// Domain IDs might use the form <DB>-<project>-<language>, meaning that
// Include the schema if it is set and is not the default placeholder.
// This means a site admin may have specifically taylored the schemas.
// Domain IDs might use the form <DB>-<project>-<language>, meaning that