Pass the database object.
This commit is contained in:
@@ -263,6 +263,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
//add the dialplan
|
//add the dialplan
|
||||||
require_once "includes/classes/database.php";
|
require_once "includes/classes/database.php";
|
||||||
$database = new database;
|
$database = new database;
|
||||||
|
$database->db = $db;
|
||||||
$database->table = "v_dialplans";
|
$database->table = "v_dialplans";
|
||||||
$database->fields['domain_uuid'] = $_SESSION['domain_uuid'];
|
$database->fields['domain_uuid'] = $_SESSION['domain_uuid'];
|
||||||
$database->fields['dialplan_uuid'] = $dialplan_uuid;
|
$database->fields['dialplan_uuid'] = $dialplan_uuid;
|
||||||
|
|||||||
Reference in New Issue
Block a user