From c04ff8e02f01691dc2e325efc523e43f3aebaf95 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 28 Feb 2009 06:37:28 +0000 Subject: Change the pattern to identify tables that need prefix substitution to mirror the drupal pattern of using braces {}. --- core/libraries/MY_Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/libraries/MY_Database.php') diff --git a/core/libraries/MY_Database.php b/core/libraries/MY_Database.php index 7d6c3ece..be0c2ec3 100644 --- a/core/libraries/MY_Database.php +++ b/core/libraries/MY_Database.php @@ -56,6 +56,6 @@ class Database extends Database_Core { public function add_table_prefixes($sql) { $prefix = $this->config["table_prefix"]; - return preg_replace("#\[([a-zA-Z0-9_]+)\]#", "{$prefix}$1", $sql); + return preg_replace("#{([a-zA-Z0-9_]+)}#", "{$prefix}$1", $sql); } } \ No newline at end of file -- cgit v1.2.3