mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-19 16:19:55 -04:00
Change the pattern to identify tables that need prefix substitution to
mirror the drupal pattern of using braces {}.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user