summaryrefslogtreecommitdiff
path: root/db.class
diff options
context:
space:
mode:
Diffstat (limited to 'db.class')
-rw-r--r--db.class10
1 files changed, 5 insertions, 5 deletions
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.");
}