Update dialplan_copy.php

This commit is contained in:
FusionPBX
2016-10-22 23:00:23 -06:00
committed by GitHub
parent fcdf4ba9d1
commit 7619cca7fb

View File

@@ -128,13 +128,12 @@
//exit;
//add or update the database
$orm = new orm;
$orm->name('dialplans');
$orm->app_name = 'dialplans';
$orm->app_uuid = $app_uuid;
$orm->uuid($dialplan_uuid);
$orm->save($array);
//$message = $orm->message;
$database = new database;
$database->app_name = 'dialplans';
$database->app_uuid = $app_uuid;
$database->uuid($dialplan_uuid);
$database->save($array);
//$message = $database->message;
//update the dialplan xml
$dialplans = new dialplan;