]> git.wh0rd.org - tt-rss.git/blobdiff - update_daemon2.php
code cleanup, test for db_escape() crazyness in DB sanity check
[tt-rss.git] / update_daemon2.php
index be652777e28b792bfb48957e6c9b2d2be553c8c6..08f5d74c3e292c4be6c0544d1120dfb4f4114c29 100644 (file)
 
        db_close($link);
 
-
        while (true) {
 
                // Since sleep is interupted by SIGCHLD, we need another way to
                                                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);
 
                                        // We disable stamp file, since it is of no use in a multiprocess update.
                                        // not really, tho for the time being -fox