From 1d8f7f155aadf209eaa4e0ca0805b428b9887b6a Mon Sep 17 00:00:00 2001
From: nveid <nveid@ispconfig3>
Date: Fri, 16 Dec 2011 02:56:46 -0500
Subject: [PATCH] Fixes to allow the serverside to work correctly with mysqli, updating the datalog, and make changes to mysql users in the mysql plugin module.

---
 server/lib/app.inc.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/lib/app.inc.php b/server/lib/app.inc.php
index 270ed4b..e6ee074 100755
--- a/server/lib/app.inc.php
+++ b/server/lib/app.inc.php
@@ -33,7 +33,7 @@
 	var $loaded_modules = array();
 	var $loaded_plugins = array();
         
-	function app() {
+	function __construct() {
 
                 global $conf;
 
@@ -47,7 +47,7 @@
 					*/
 					
 					if($conf['dbmaster_host'] != '' && $conf['dbmaster_host'] != $conf['db_host']) {
-						$this->dbmaster = new db;
+						$this->dbmaster = new db($conf['dbmaster_host'], $conf['dbmaster_user'], $conf['dbmaster_password'], $conf['dbmaster_database']);
 					} else {
 						$this->dbmaster = $this->db;
 					}

--
Gitblit v1.9.1