summaryrefslogtreecommitdiff
path: root/db.class
diff options
context:
space:
mode:
authorUrban Müller2007-07-23 11:52:02 +0000
committerUrban Müller2007-07-23 11:52:02 +0000
commite604ad4231a127ae417dc7bfcf300af3ca69a016 (patch)
treef876faa93de047bf22121ea8ac0d82c100d6645d /db.class
parent4dd2ce87fa30735e2654689d915740bc23a0dc49 (diff)
downloaditools-e604ad4231a127ae417dc7bfcf300af3ca69a016.tar.gz
itools-e604ad4231a127ae417dc7bfcf300af3ca69a016.tar.bz2
itools-e604ad4231a127ae417dc7bfcf300af3ca69a016.zip
eliminated internal_error()
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.");
}