From 889a5f9f195309df5842f142986b3166212d8a58 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Apr 2013 19:41:31 +0400 Subject: experimental SQL-based error logger --- include/functions.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 659950be0..621357ea6 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1,6 +1,6 @@ 0; } - function init_connection($link) { + function init_connection_only($link) { if ($link) { - if (DB_TYPE == "pgsql") { pg_query($link, "set client_encoding = 'UTF-8'"); pg_set_client_encoding("UNICODE"); @@ -3385,6 +3384,16 @@ } } + return true; + } + + return false; + } + + function init_connection($link) { + if ($link) { + init_connection_only($link); + global $pluginhost; $pluginhost = new PluginHost($link); -- cgit v1.2.3