From 131fb588ca4d46a7956e7c884487c18c8a9e1718 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 21 May 2001 17:18:39 +0000 Subject: [PATCH] Change config_appname to config_app --- phpgwapi/inc/class.config.inc.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/phpgwapi/inc/class.config.inc.php b/phpgwapi/inc/class.config.inc.php index 19512231c9..7dfa88cfe4 100755 --- a/phpgwapi/inc/class.config.inc.php +++ b/phpgwapi/inc/class.config.inc.php @@ -36,13 +36,13 @@ $appname = $phpgw_info['flags']['currentapp']; } - $this->db = $phpgw->db; + $this->db = $phpgw->db; $this->appname = $appname; } function read_repository() { - $this->db->query("select * from phpgw_config where config_appname='" . $this->appname . "'",__LINE__,__FILE__); + $this->db->query("select * from phpgw_config where config_app='" . $this->appname . "'",__LINE__,__FILE__); while ($this->db->next_record()) { $this->config_data[$this->db->f('config_name')] = $this->db->f('config_value'); @@ -54,12 +54,12 @@ $config_data = $this->config_data; $this->db->lock('phpgw_config'); - $this->db->query("delete from phpgw_config where config_appname='" . $this->appname . "'",__LINE__,__FILE__); + $this->db->query("delete from phpgw_config where config_app='" . $this->appname . "'",__LINE__,__FILE__); while (list($name,$value) = each($config_data)) { $name = addslashes($name); $value = addslashes($value); - $this->db->query("insert into phpgw_config (config_appname,config_name,config_value) " + $this->db->query("insert into phpgw_config (config_app,config_name,config_value) " . "values ('" . $this->appname . "','" . $name . "','" . $value . "')",__LINE__,__FILE__); } $this->db->unlock(); @@ -67,12 +67,12 @@ function delete_repository() { - $this->db->query("delete from phpgw_config where config_appname='" . $this->appname . "'",__LINE__,__FILE__); + $this->db->query("delete from phpgw_config where config_app='" . $this->appname . "'",__LINE__,__FILE__); } function value($variable_name,$variable_data) { $this->config_data[$variable_name] = $variable_data; } - - } \ No newline at end of file + } +?>