1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 01:15:56 +00:00

db updates, remove init_connection()

This commit is contained in:
Andrew Dolgov
2013-04-17 14:23:35 +04:00
parent 9594791782
commit ba68b6815a
21 changed files with 47 additions and 51 deletions

View File

@@ -55,5 +55,15 @@ class Db_Mysql implements IDb {
return mysql_affected_rows($this->link);
}
function init() {
$this->query("SET time_zone = '+0:0'");
if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
$this->query("SET NAMES " . MYSQL_CHARSET);
}
return true;
}
}
?>