From: umherirrender Date: Thu, 13 Nov 2014 18:43:06 +0000 (+0100) Subject: Set default value for $wgSharedSchema X-Git-Tag: 1.31.0-rc.0~13288 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=3f03ae662313be96eab11068ea44007c2faa21e7;p=lhc%2Fweb%2Fwiklou.git Set default value for $wgSharedSchema Was added in I25df82065a307b9abc30c694f8c8afff0996d7c1 back in REL1_23 Change-Id: I291e770861751e037befe1db004e5e3f8b449f6c --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 4a351205f5..e822655f87 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1702,6 +1702,9 @@ $wgAllDBsAreLocalhost = false; * $wgSharedPrefix is the table prefix for the shared database. It defaults to * $wgDBprefix. * + * $wgSharedSchema is the table schema for the shared database. It defaults to + * $wgDBmwschema. + * * @deprecated since 1.21 In new code, use the $wiki parameter to wfGetLB() to * access remote databases. Using wfGetLB() allows the shared database to * reside on separate servers to the wiki's own database, with suitable @@ -1719,6 +1722,12 @@ $wgSharedPrefix = false; */ $wgSharedTables = array( 'user', 'user_properties' ); +/** + * @see $wgSharedDB + * @since 1.23 + */ +$wgSharedSchema = false; + /** * Database load balancer * This is a two-dimensional array, an array of server info structures diff --git a/includes/Setup.php b/includes/Setup.php index 2faf1960ea..f61de7eb6d 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -306,6 +306,11 @@ if ( $wgSharedPrefix === false ) { $wgSharedPrefix = $wgDBprefix; } +// Set default shared schema +if ( $wgSharedSchema === false ) { + $wgSharedSchema = $wgDBmwschema; +} + if ( !$wgCookiePrefix ) { if ( $wgSharedDB && $wgSharedPrefix && in_array( 'user', $wgSharedTables ) ) { $wgCookiePrefix = $wgSharedDB . '_' . $wgSharedPrefix;