* (bug 1976) fix shared user database with a table prefix set
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 6 Jun 2005 00:38:31 +0000 (00:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 6 Jun 2005 00:38:31 +0000 (00:38 +0000)
RELEASE-NOTES
includes/Database.php

index a0a230f..362c9e5 100644 (file)
@@ -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 ===
index 9355231..6509c7d 100644 (file)
@@ -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