From e205941a92eb1f46b1ea5997c01e402cdf91bca1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 28 Mar 2019 11:41:47 -0700 Subject: [PATCH 1/1] Map WikiMap treat a schema of "dbo" similar to "mediawiki" to account for mssql" Change-Id: I07ae057dffc2c7203cde2c24ebb27067338b5096 --- includes/WikiMap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/WikiMap.php b/includes/WikiMap.php index 628fbc0257..dbad4b0741 100644 --- a/includes/WikiMap.php +++ b/includes/WikiMap.php @@ -255,7 +255,7 @@ class WikiMap { public static function getWikiIdFromDbDomain( $domain ) { $domain = DatabaseDomain::newFromId( $domain ); - 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 --, meaning that @@ -298,7 +298,7 @@ class WikiMap { $domain = DatabaseDomain::newFromId( $domain ); $curDomain = self::getCurrentWikiDbDomain(); - 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 --, meaning that -- 2.20.1