From 85930f1dc91a216f41739f157a475301b98f4850 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 9 Jun 2008 21:45:20 +0000 Subject: [PATCH] * (bug 11084) $wgDBprefix replacement for updater SQL will now work for extension tables using uppercase letters or digits in their names. --- RELEASE-NOTES | 3 +++ includes/Database.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 08c100f9df..7c65969f8f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Database.php b/includes/Database.php index b23126534b..5a94942032 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -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; } -- 2.20.1