From e604ad4231a127ae417dc7bfcf300af3ca69a016 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 23 Jul 2007 11:52:02 +0000 Subject: eliminated internal_error() --- db.class | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'db.class') diff --git a/db.class b/db.class index f94861a..781432c 100644 --- a/db.class +++ b/db.class @@ -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."); } -- cgit v1.2.3