diff --git a/app/devices/device_profile_edit.php b/app/devices/device_profile_edit.php index 6aabb82e13..f99a6dde24 100644 --- a/app/devices/device_profile_edit.php +++ b/app/devices/device_profile_edit.php @@ -167,7 +167,9 @@ //write the provision files if (strlen($_SESSION['provision']['path']['text']) > 0) { - require_once "app/provision/provision_write.php"; + $prov = new provision; + $prov->domain_uuid = $domain_uuid; + $response = $prov->write(); } //set the message