diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 8271a2f9cd..77558fae57 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -523,9 +523,12 @@ } //write the provision files - if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/provision')) { - require_once "app/provision/provision_write.php"; - $ext = new extension; + 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(); + } } //clear the cache