Update dialplan_xml.php

This commit is contained in:
FusionPBX 2016-10-22 23:07:14 -06:00 committed by GitHub
parent 4f19f185a6
commit 19e914c422
1 changed files with 6 additions and 7 deletions

View File

@ -84,15 +84,14 @@
$array['dialplans'][$x]["dialplan_xml"] = $_REQUEST['dialplan_xml'];;
//save to the data
$orm = new orm;
//$orm->name('ring_groups');
$orm->app_name = 'dialplans';
$orm->app_uuid = $app_uuid;
$database = new database;
$database->app_name = 'dialplans';
$database->app_uuid = $app_uuid;
//if (strlen($dialplan_uuid) > 0) {
// $orm->uuid($dialplan_uuid);
// $database->uuid($dialplan_uuid);
//}
$orm->save($array);
$message = $orm->message;
$database->save($array);
$message = $database->message;
//debug info
//echo "<pre>\n";