Browse Source

Add globals needed by the app defaults in domains upgrade method.

Mark Crane 11 years ago
parent
commit
9b2be45f67
1 changed files with 4 additions and 1 deletions
  1. 4 1
      resources/classes/domains.php

+ 4 - 1
resources/classes/domains.php

@@ -186,7 +186,10 @@
 		public function upgrade() {
 		public function upgrade() {
 
 
 			//set the global variable
 			//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
 			//get the list of installed apps from the core and mod directories
 				$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
 				$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");