Переглянути джерело

Add a contructor to the dialplan class.

markjcrane 9 роки тому
батько
коміт
fe3dd254ab
2 змінених файлів з 2 додано та 3 видалено
  1. 1 3
      resources/classes/domains.php
  2. 1 0
      resources/classes/schema.php

+ 1 - 3
resources/classes/domains.php

@@ -201,9 +201,6 @@
 
 		public function upgrade() {
 
-			//set the global variable
-				global $db;
-
 			//get the db variables
 				$config = new config;
 				$config_exists = $config->exists();
@@ -225,6 +222,7 @@
 				$config_list_2 = glob($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/*/*/app_menu.php");
 				$config_list = array_merge((array)$config_list_1, (array)$config_list_2);
 				unset($config_list_1,$config_list_2);
+				$db = $this->db;
 				$x=0;
 				foreach ($config_list as &$config_path) {
 					include($config_path);

+ 1 - 0
resources/classes/schema.php

@@ -27,6 +27,7 @@ include "root.php";
 
 //define the schema class
 	class schema {
+
 		//define variables
 			public $db;
 			public $apps;