mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Update scripts.php
This commit is contained in:
@@ -95,9 +95,6 @@ if (!class_exists('scripts')) {
|
||||
public function copy_files() {
|
||||
if (is_array($_SESSION['switch']['scripts'])) {
|
||||
$dst_dir = $_SESSION['switch']['scripts']['dir'];
|
||||
if(strlen($dst_dir) == 0) {
|
||||
throw new Exception("Cannot copy scripts the 'script_dir' is empty");
|
||||
}
|
||||
if (file_exists($dst_dir)) {
|
||||
//get the source directory
|
||||
if (file_exists('/usr/share/examples/fusionpbx/scripts')){
|
||||
|
||||
Reference in New Issue
Block a user