From 2970a452793bb38b7fc36270fb80795c79813d4e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 6 Jun 2005 00:38:31 +0000 Subject: [PATCH] * (bug 1976) fix shared user database with a table prefix set --- RELEASE-NOTES | 1 + includes/Database.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a0a230f9b5..362c9e55e9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -267,6 +267,7 @@ Various bugfixes, small features, and a few experimental things: * (bug 2319) Fix parse hook tag matching * (bug 2329) Fix title formatting in several special pages * (bug 2223) Add unique index on user_name field to prevent duplicate accounts +* (bug 1976) fix shared user database with a table prefix set === Caveats === diff --git a/includes/Database.php b/includes/Database.php index 935523118b..6509c7dedd 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -1009,7 +1009,7 @@ class Database { if ( $this->mTablePrefix !== '' && strpos( '.', $name ) === false ) { $name = "{$this->mTablePrefix}$name"; } - if ( isset( $wgSharedDB ) && 'user' == $name ) { + if ( isset( $wgSharedDB ) && "{$this->mTablePrefix}user" == $name ) { $name = "`$wgSharedDB`.`$name`"; } else { # Standard quoting -- 2.20.1