no $err->log but $this->halt
This commit is contained in:
parent
0c88edaf0f
commit
0e088579c5
|
@ -69,7 +69,7 @@ class DB_Sql {
|
||||||
*/
|
*/
|
||||||
function connect($Database = "", $Host = "", $User = "", $Password = "") {
|
function connect($Database = "", $Host = "", $User = "", $Password = "") {
|
||||||
global $err;
|
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 */
|
/* Handle defaults */
|
||||||
if ("" == $Database)
|
if ("" == $Database)
|
||||||
$Database = $this->Database;
|
$Database = $this->Database;
|
||||||
|
@ -86,7 +86,7 @@ class DB_Sql {
|
||||||
try {
|
try {
|
||||||
$this->pdo_instance = new PDO($dsn, $User, $Password);
|
$this->pdo_instance = new PDO($dsn, $User, $Password);
|
||||||
} catch (PDOException $e) {
|
} catch (PDOException $e) {
|
||||||
$err->log("Mysql", "PDO instance", $e->getMessage());
|
$this->halt("Mysql::PDO_instance" . $e->getMessage());
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue