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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user