mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update init_tr.php
This commit is contained in:
parent
2111734d7c
commit
e74b4db121
@ -131,10 +131,7 @@ class sql_db
|
|||||||
if (!$link = @$connect_type($this->cfg['dbhost'], $this->cfg['dbuser'], $this->cfg['dbpasswd']))
|
if (!$link = @$connect_type($this->cfg['dbhost'], $this->cfg['dbuser'], $this->cfg['dbpasswd']))
|
||||||
{
|
{
|
||||||
$this->log_error();
|
$this->log_error();
|
||||||
if (DBG_LOG_TRACKER)
|
error_exit("Could not connect to {$this->engine} server '{$this->cfg['dbhost']}'");
|
||||||
{
|
|
||||||
dbg_log("Could not connect to {$this->engine} server '{$this->cfg['dbhost']}'", "{$this->cfg['dbhost']}-DB-connect-FAIL_" . TIMENOW);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
register_shutdown_function(array(&$this, 'close'));
|
register_shutdown_function(array(&$this, 'close'));
|
||||||
|
Loading…
Reference in New Issue
Block a user