summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-11-10 06:29:19 +0100
committerAndrew Dolgov <[email protected]>2008-11-10 06:29:19 +0100
commitf29ba1484f4a230651a40f4b3e26444d9748453f (patch)
tree0b8d66229a08600986654a060ad2128b6d07f130 /backend.php
parentd2bf48f90ad1997406708811c45163567b9c3ff0 (diff)
code cleanup, test for db_escape() crazyness in DB sanity check
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/backend.php b/backend.php
index fa116458c..b298ec738 100644
--- a/backend.php
+++ b/backend.php
@@ -46,15 +46,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);
$op = $_REQUEST["op"];