]> git.wh0rd.org - tt-rss.git/blobdiff - update_feeds.php
code cleanup, test for db_escape() crazyness in DB sanity check
[tt-rss.git] / update_feeds.php
index 139da699925cf575cdfddb432b960ca5c351ffa4..2bb91dc30182d47547e6beaf027de1794941da85 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);
 
        // Purge all posts (random 30 feeds)
        global_purge_old_posts($link, true, 30);