diff options
author | Urban Müller | 2007-07-23 11:52:02 +0000 |
---|---|---|
committer | Urban Müller | 2007-07-23 11:52:02 +0000 |
commit | e604ad4231a127ae417dc7bfcf300af3ca69a016 (patch) | |
tree | f876faa93de047bf22121ea8ac0d82c100d6645d /db.class | |
parent | 4dd2ce87fa30735e2654689d915740bc23a0dc49 (diff) | |
download | itools-e604ad4231a127ae417dc7bfcf300af3ca69a016.tar.gz itools-e604ad4231a127ae417dc7bfcf300af3ca69a016.tar.bz2 itools-e604ad4231a127ae417dc7bfcf300af3ca69a016.zip |
eliminated internal_error()
Diffstat (limited to 'db.class')
-rw-r--r-- | db.class | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -56,10 +56,10 @@ function it_db($databasename, $username, $password, $host='localhost', $host_upd $this->name = $databasename; } else - internal_error("Can't select database \"$databasename\" on host \"$host\"."); + it::fatal("Can't select database \"$databasename\" on host \"$host\"."); } else - internal_error("Can't connect to database server \"$host\" as user \"$username\"."); + it::fatal("Can't connect to database server \"$host\" as user \"$username\"."); if ($host_update) { @@ -92,12 +92,12 @@ function sql_query($sql) if (mysql_select_db($this->name, $this->link)) $this->host = $this->host_update; else - internal_error('Error selecting update database "'.$this->name.'" on host "'.$this->host_update.'".'); + it::fatal('Error selecting update database "'.$this->name.'" on host "'.$this->host_update.'".'); $this->host_update=''; } else - internal_error('Error connecting to update database server "'.$this->host_update.'" as user "'.$this->username.'".'); + it::fatal('Error connecting to update database server "'.$this->host_update.'" as user "'.$this->username.'".'); } return mysql_query($sql, $this->link); @@ -200,7 +200,7 @@ function _get_table_info() $this->tablenames[$i] = $name; } } - else internal_error("mysql_list_tables($this->name,$this->link) failed."); + else it::fatal("mysql_list_tables($this->name,$this->link) failed."); } |