* (bug 11082) Fix check for fully-specced table names in Database::tableName
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 27 Aug 2007 18:56:31 +0000 (18:56 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 27 Aug 2007 18:56:31 +0000 (18:56 +0000)
strpos() was in wrong order since added in 2004 :D

RELEASE-NOTES
includes/Database.php

index 802b57c..cb2b838 100644 (file)
@@ -419,6 +419,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Double encoding broke Special:Newpages for some languages
 * Adding a newline before the statistics footer, to prevent parsing problems
 * Preventing the TOC from appearing in Special:Statistics
+* (bug 11082) Fix check for fully-specced table names in Database::tableName
+
 
 == API changes since 1.10 ==
 
index 7e5266f..5387ed4 100644 (file)
@@ -1582,7 +1582,7 @@ class Database {
                global $wgSharedDB;
                # Skip quoted literals
                if ( $name{0} != '`' ) {
-                       if ( $this->mTablePrefix !== '' &&  strpos( '.', $name ) === false ) {
+                       if ( $this->mTablePrefix !== '' &&  strpos( $name, '.' ) === false ) {
                                $name = "{$this->mTablePrefix}$name";
                        }
                        if ( isset( $wgSharedDB ) && "{$this->mTablePrefix}user" == $name ) {