X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=classes%2Fdb.php;h=695ca6ea2e47bcd2e523474bf5acafd769a05049;hb=e2cf81e21406f0b507446cf369f7da172ce9da14;hp=9b800dc22e345f3fa6b5e27457daad5d10f53900;hpb=654650857ffc3e4914c9655528e1037939f75f54;p=tt-rss.git diff --git a/classes/db.php b/classes/db.php index 9b800dc2..695ca6ea 100644 --- a/classes/db.php +++ b/classes/db.php @@ -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 ;