From b68b926eeb12f3d91f775ea42e03fd3c5759e31d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 15 Jan 2006 00:14:51 +0000 Subject: [PATCH] r710: TABLE_PREFIX is your friend --- admin/language.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/language.php b/admin/language.php index 5d9c7bd..ff765c7 100644 --- a/admin/language.php +++ b/admin/language.php @@ -29,7 +29,7 @@ if (empty($_REQUEST['do'])) if ($_REQUEST['do'] == 'kill') { - $count = $db->query_first("SELECT COUNT(*) AS count FROM language"); + $count = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "language"); if ($count['count'] < 2) { $admin->error($lang->string('At least one language needs to be present. Deleting this language would violate that.')); @@ -58,7 +58,7 @@ if ($_REQUEST['do'] == 'delete') if ($_POST['do'] == 'insert') { $languageid = $db->query(" - INSERT INTO language + INSERT INTO " . TABLE_PREFIX . "language (title, charset, direction, userselect, debug, filename) VALUES ('" . $bugsys->in['title'] . "', '" . $bugsys->in['charset'] . "', @@ -103,7 +103,7 @@ if ($_REQUEST['do'] == 'add') if ($_POST['do'] == 'update') { $db->query(" - UPDATE language + UPDATE " . TABLE_PREFIX . "language SET title = '" . $bugsys->in['title'] . "', charset = '" . $bugsys->in['charset'] . "', direction = '" . $bugsys->in['direction'] . "', -- 2.22.5