no $err->log but $this->halt

This commit is contained in:
Fran��ois Serman 2014-06-26 10:29:45 +00:00
parent 0c88edaf0f
commit 0e088579c5
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ class DB_Sql {
*/
function connect($Database = "", $Host = "", $User = "", $Password = "") {
global $err;
$err->log('Mysql', 'Legacy', 'This function should no longer be used');
$this->halt('Mysql::connect() : This function should no longer be used');
/* Handle defaults */
if ("" == $Database)
$Database = $this->Database;
@ -86,7 +86,7 @@ class DB_Sql {
try {
$this->pdo_instance = new PDO($dsn, $User, $Password);
} catch (PDOException $e) {
$err->log("Mysql", "PDO instance", $e->getMessage());
$this->halt("Mysql::PDO_instance" . $e->getMessage());
return FALSE;
}
}