mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Replace the DOCUMENT_ROOT and PROJECT_ROOT variables
Use the __DIR__ constant and dirname as needed
This commit is contained in:
@@ -141,7 +141,7 @@
|
||||
}
|
||||
|
||||
//change the working directory
|
||||
chdir($_SERVER['DOCUMENT_ROOT']);
|
||||
chdir(dirname(__DIR__, 4));
|
||||
|
||||
//get the messages waiting in the fax queue
|
||||
while (true) {
|
||||
@@ -195,7 +195,7 @@
|
||||
//process the messages
|
||||
if (is_array($fax_queue) && @sizeof($fax_queue) != 0) {
|
||||
foreach($fax_queue as $row) {
|
||||
$command = PHP_BINARY." ".$_SERVER['DOCUMENT_ROOT']."/app/fax_queue/resources/job/fax_send.php ";
|
||||
$command = PHP_BINARY." ".dirname(__DIR__, 4)."/app/fax_queue/resources/job/fax_send.php ";
|
||||
$command .= "'action=send&fax_queue_uuid=".$row["fax_queue_uuid"]."&hostname=".$hostname."'";
|
||||
if (isset($debug)) {
|
||||
//run process inline to see debug info
|
||||
|
||||
Reference in New Issue
Block a user