From f29ba1484f4a230651a40f4b3e26444d9748453f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 10 Nov 2008 06:29:19 +0100 Subject: code cleanup, test for db_escape() crazyness in DB sanity check --- update_feeds.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'update_feeds.php') diff --git a/update_feeds.php b/update_feeds.php index 139da6999..2bb91dc30 100644 --- a/update_feeds.php +++ b/update_feeds.php @@ -36,15 +36,7 @@ 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); -- cgit v1.2.3