]> git.wh0rd.org - tt-rss.git/blobdiff - classes/db/mysql.php
db updates, remove init_connection()
[tt-rss.git] / classes / db / mysql.php
index 512ea38943907d8b643c0294bacfab8b69437e1d..fa97dcff16d9af59d931abf5cfb270c21afc556d 100644 (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;
+       }
+
 }
 ?>