From bfb6f3b494ba08ac21cbb408efd8f7c3f78decf3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 3 Nov 2003 14:41:17 +0000 Subject: [PATCH] use config::save_value to update the ctimes of the lang-files --- phpgwapi/inc/class.translation_sql.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.translation_sql.inc.php b/phpgwapi/inc/class.translation_sql.inc.php index 8307466634..1c1e0d2f7f 100644 --- a/phpgwapi/inc/class.translation_sql.inc.php +++ b/phpgwapi/inc/class.translation_sql.inc.php @@ -437,9 +437,8 @@ // update the ctimes of the installed langsfiles for the autoloading of the lang-files // - $this->db->query("DELETE from phpgw_config WHERE config_app='phpgwapi' AND config_name='lang_ctimes'",__LINE__,__FILE__); - $this->db->query($query="INSERT INTO phpgw_config(config_app,config_name,config_value) VALUES ('phpgwapi','lang_ctimes','". - addslashes(serialize($GLOBALS['phpgw_info']['server']['lang_ctimes']))."')",__LINE__,__FILE__); + $config = CreateObject('phpgwapi.config.save_value'); + $config->save_value('lang_ctimes',$GLOBALS['phpgw_info']['server']['lang_ctimes'],'phpgwapi'); } /*!