diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-07-10 17:46:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-07-10 17:46:44 +0000 |
commit | 337b3c9de997f4fcb27467e3d80d0f43fda7783e (patch) | |
tree | 392e4a56fa1ac3d09e9cb78998f87ab438229926 /includes/database.inc | |
parent | 1c2fc43b51455e4895455798919e4c77e2b1bf21 (diff) | |
download | brdo-337b3c9de997f4fcb27467e3d80d0f43fda7783e.tar.gz brdo-337b3c9de997f4fcb27467e3d80d0f43fda7783e.tar.bz2 |
- Committed a slightly modified version of Slavica's table prefix patch.
Diffstat (limited to 'includes/database.inc')
-rw-r--r-- | includes/database.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/database.inc b/includes/database.inc index be815390e..dd5d28af9 100644 --- a/includes/database.inc +++ b/includes/database.inc @@ -1,4 +1,11 @@ <?php +// $Id$ + +function db_prefix_tables($sql) { + global $db_prefix; + + return strtr($sql, array("{" => $db_prefix, "}" => "")); +} $db_type = substr($db_url, 0, strpos($db_url, "://")); @@ -11,4 +18,4 @@ else { db_connect($db_url); -?>
\ No newline at end of file +?> |