mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add a contructor to the dialplan class.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -27,6 +27,7 @@ include "root.php";
|
||||
|
||||
//define the schema class
|
||||
class schema {
|
||||
|
||||
//define variables
|
||||
public $db;
|
||||
public $apps;
|
||||
|
||||
Reference in New Issue
Block a user