1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:25:55 +00:00

unify houskeeping stuff, increase spawn interval

This commit is contained in:
Andrew Dolgov
2013-04-24 14:54:59 +04:00
parent 654650857f
commit e2cf81e214
6 changed files with 25 additions and 46 deletions

View File

@@ -53,6 +53,10 @@ class Db implements IDb {
return("'$str'");
}
function reconnect() {
$this->link = $this->adapter->connect(DB_HOST, DB_USER, DB_PASS, DB_NAME, defined('DB_PORT') ? DB_PORT : "");
}
function connect($host, $user, $pass, $db, $port) {
//return $this->adapter->connect($host, $user, $pass, $db, $port);
return ;