Update device_dashboard.php

This commit is contained in:
FusionPBX
2016-12-06 10:43:16 -07:00
committed by GitHub
parent e7879e8b2f
commit 5e7e2e0778

View File

@@ -272,9 +272,13 @@
}
//write the provision files
//if (strlen($_SESSION['provision']['path']['text']) > 0) {
//require_once "app/provision/provision_write.php";
//}
if (strlen($_SESSION['provision']['path']['text']) > 0) {
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/provision')) {
$prov = new provision;
$prov->domain_uuid = $domain_uuid;
$response = $prov->write();
}
}
//set the message
if (!isset($_SESSION['message'])) {