]> git.wh0rd.org - tt-rss.git/blobdiff - update_daemon_loop.php
code cleanup, test for db_escape() crazyness in DB sanity check
[tt-rss.git] / update_daemon_loop.php
index 737194aee4fa5e6183013cdf4e5d9bb309bc1f1e..b1197ff3494801862920989f0e1c6e50a31ef0fb 100644 (file)
                return;
        }
 
-       if (DB_TYPE == "pgsql") {
-               pg_query("set client_encoding = 'utf-8'");
-               pg_set_client_encoding("UNICODE");
-       } else {
-               if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
-                       db_query($link, "SET NAMES " . MYSQL_CHARSET);
-//                     db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET);
-               }
-       }
+       init_connection($link);
 
        $last_purge = 0;