Change the pattern to identify tables that need prefix substitution to

mirror the drupal pattern of using braces {}.
This commit is contained in:
Tim Almdal
2009-02-28 06:37:28 +00:00
parent ad56995baf
commit c04ff8e02f
21 changed files with 100 additions and 100 deletions

View File

@@ -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);
}
}