1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 02:51:28 +00:00

more work on singleton-based DB

This commit is contained in:
Andrew Dolgov
2013-04-17 15:36:34 +04:00
parent ba68b6815a
commit 404e2e3603
18 changed files with 143 additions and 188 deletions

View File

@@ -9,6 +9,9 @@ class Db_Mysql implements IDb {
if (!$result) {
die("Can't select DB: " . mysql_error($this->link));
}
$this->init();
return $this->link;
} else {
die("Unable to connect to database (as $user to $host, database $db): " . mysql_error());