From 4fd34d1c806ae94990859029d8155524e095abf8 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 15 Jul 2014 17:49:28 +0000 Subject: [PATCH] Add globals needed by the app defaults in domains upgrade method. --- resources/classes/domains.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/classes/domains.php b/resources/classes/domains.php index 81edad15a5..4f168863f8 100644 --- a/resources/classes/domains.php +++ b/resources/classes/domains.php @@ -186,7 +186,10 @@ public function upgrade() { //set the global variable - global $db; + global $db, $db_type, $db_name, $db_username, $db_password, $db_host, $db_path, $db_port; + + //get the PROJECT PATH + include "root.php"; //get the list of installed apps from the core and mod directories $config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");