adjust sql for new table names

This commit is contained in:
Miles Lott 2002-02-23 17:19:28 +00:00
parent 54e00b04d6
commit 0ac2d5a353

View File

@ -41,9 +41,9 @@
if ($GLOBALS['HTTP_POST_VARS']['submit']) if ($GLOBALS['HTTP_POST_VARS']['submit'])
{ {
$GLOBALS['phpgw']->db->query("DELETE FROM lang WHERE message_id='$section" . "_message' AND app_name='" $GLOBALS['phpgw']->db->query("DELETE FROM phpgw_lang WHERE message_id='$section" . "_message' AND app_name='"
. "$section' AND lang='$select_lang'",__LINE__,__FILE__); . "$section' AND lang='$select_lang'",__LINE__,__FILE__);
$GLOBALS['phpgw']->db->query("INSERT INTO lang VALUES ('$section" . "_message','$section','$select_lang','" $GLOBALS['phpgw']->db->query("INSERT INTO phpgw_lang VALUES ('$section" . "_message','$section','$select_lang','"
. addslashes($message) . "')",__LINE__,__FILE__); . addslashes($message) . "')",__LINE__,__FILE__);
$message = '<center>'.lang('message has been updated').'</center>'; $message = '<center>'.lang('message has been updated').'</center>';
} }