* (bug 11084) $wgDBprefix replacement for updater SQL will now work for
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 9 Jun 2008 21:45:20 +0000 (21:45 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 9 Jun 2008 21:45:20 +0000 (21:45 +0000)
  extension tables using uppercase letters or digits in their names.

RELEASE-NOTES
includes/Database.php

index 08c100f..7c65969 100644 (file)
@@ -352,6 +352,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 11951) EditPage::getEditToolbar() is now static.
 * (bug 14404) Use of {{int:...}} to generate links no longer breaks links table
   if user has a custom interface language
+* (bug 14392) Fix regression breaking table prefix in installer
+* (bug 11084) $wgDBprefix replacement for updater SQL will now work for
+  extension tables using uppercase letters or digits in their names.
 
 
 === API changes in 1.13 ===
index b231265..5a94942 100644 (file)
@@ -2215,7 +2215,7 @@ class Database {
                }
 
                // Table prefixes
-               $ins = preg_replace_callback( '/\/\*(?:\$wgDBprefix|_)\*\/([a-z_]*)/',
+               $ins = preg_replace_callback( '/\/\*(?:\$wgDBprefix|_)\*\/([a-zA-Z_0-9]*)/',
                        array( &$this, 'tableNameCallback' ), $ins );
                return $ins;
        }