Update scripts.php

This commit is contained in:
FusionPBX
2020-01-17 17:55:42 -07:00
committed by GitHub
parent 4a31db0ed6
commit d795ee62d1

View File

@@ -24,7 +24,6 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
/**
* scripts class provides methods for creating the config.lua and copying switch scripts
*
@@ -104,7 +103,7 @@ if (!class_exists('scripts')) {
$source_directory = '/usr/share/examples/fusionpbx/scripts';
}
else {
$source_directory = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/resources/scripts';
$source_directory = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/scripts/resources/scripts';
}
if (is_readable($source_directory)) {
//copy the main scripts