From d7a196f4c4a1ba2ae8e8ebc1836a0d96e870b98d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 15 Jan 2006 00:21:36 +0000 Subject: [PATCH] r713: Table prefixes are your friend! --- includes/language.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/language.php b/includes/language.php index 8fab2d2..d735043 100644 --- a/includes/language.php +++ b/includes/language.php @@ -21,12 +21,12 @@ function build_language_cache($languageid) { global $bugsys; - $bugsys->db->query("DELETE FROM localization WHERE languageid = $languageid"); + $bugsys->db->query("DELETE FROM " . TABLE_PREFIX . "localization WHERE languageid = $languageid"); $localizations = fetch_strings($languageid, true); foreach ($localizations AS $key => $value) { - $bugsys->db->query("INSERT INTO localization (localkey, localtext, languageid) VALUES ('" . $bugsys->escape($key) . "', '" . $bugsys->escape($value) . "', $languageid)"); + $bugsys->db->query("INSERT INTO " . TABLE_PREFIX . "localization (localkey, localtext, languageid) VALUES ('" . $bugsys->escape($key) . "', '" . $bugsys->escape($value) . "', $languageid)"); } } -- 2.43.5