rename $wgUserTablePrefix to $wgSharedDB as discussed on #mediawiki
This commit is contained in:
parent
6ac6e66d6d
commit
76ea9e6220
2 changed files with 10 additions and 7 deletions
|
|
@ -666,14 +666,14 @@ class Database {
|
|||
}
|
||||
|
||||
function tableName( $name ) {
|
||||
global $wgUserTablePrefix;
|
||||
global $wgSharedDB;
|
||||
if ( $this->mTablePrefix !== '' ) {
|
||||
if ( strpos( '.', $name ) === false ) {
|
||||
$name = $this->mTablePrefix . $name;
|
||||
}
|
||||
}
|
||||
if ( isset( $wgUserTablePrefix ) && 'user' == $name ) {
|
||||
$name = $wgUserTablePrefix . '.' . $name;
|
||||
if ( isset( $wgSharedDB ) && 'user' == $name ) {
|
||||
$name = $wgSharedDB . '.' . $name;
|
||||
}
|
||||
return $name;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,6 +74,13 @@ $wgDBuser = 'wikiuser';
|
|||
$wgDBtype = "mysql"; # "mysql" for working code and "PostgreSQL" for development/broken code
|
||||
$wgDBprefix = ''; # Table name prefix
|
||||
|
||||
# Shared database for multiple wikis.
|
||||
# Presently used for storing a user table for single sign-on
|
||||
# The server for this database must be the same as for the main
|
||||
# database.
|
||||
# EXPERIMENTAL
|
||||
# $wgSharedDB='';
|
||||
|
||||
# Database load balancer
|
||||
# This is a two-dimensional array, an array of server info structures
|
||||
# Fields are:
|
||||
|
|
@ -542,10 +549,6 @@ $wgUseExternalDiffEngine = false;
|
|||
# Use RC Patrolling to check for vandalism
|
||||
$wgUseRCPatrol = true;
|
||||
|
||||
# set wgUserTablePrefix to the name of the DB where your users
|
||||
# table is for single login. Disabled by default.
|
||||
#$wgUserTablePrefix='';
|
||||
|
||||
} else {
|
||||
die();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue