Update scripts.php
This commit is contained in:
@@ -24,7 +24,6 @@
|
|||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* scripts class provides methods for creating the config.lua and copying switch scripts
|
* 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';
|
$source_directory = '/usr/share/examples/fusionpbx/scripts';
|
||||||
}
|
}
|
||||||
else {
|
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)) {
|
if (is_readable($source_directory)) {
|
||||||
//copy the main scripts
|
//copy the main scripts
|
||||||
|
|||||||
Reference in New Issue
Block a user