]> git.wh0rd.org - tt-rss.git/blobdiff - classes/db.php
unify houskeeping stuff, increase spawn interval
[tt-rss.git] / classes / db.php
index 9b800dc22e345f3fa6b5e27457daad5d10f53900..695ca6ea2e47bcd2e523474bf5acafd769a05049 100644 (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 ;