From ee5a16e934dc558cbd6c9ece61bac5add7a01059 Mon Sep 17 00:00:00 2001 From: marknl <marknl@ispconfig3> Date: Fri, 09 Sep 2011 15:03:16 -0400 Subject: [PATCH] Added default website_symlinks_rel=n in server.ini.master (see r2513) --- server/lib/classes/db_mysql.inc.php | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/server/lib/classes/db_mysql.inc.php b/server/lib/classes/db_mysql.inc.php index 2c113b5..7e0c561 100644 --- a/server/lib/classes/db_mysql.inc.php +++ b/server/lib/classes/db_mysql.inc.php @@ -45,8 +45,7 @@ var $show_error_messages = true; // constructor - function db() - { + public function __construct() { global $conf; $this->dbHost = $conf['db_host']; @@ -56,6 +55,10 @@ $this->dbCharset = $conf['db_charset']; //$this->connect(); } + + public function __destruct() { + $this->closeConn(); + } // error handler function updateError($location) -- Gitblit v1.9.1