mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Use the PHP_BINARY constant
This commit is contained in:
@@ -138,9 +138,8 @@
|
|||||||
|
|
||||||
//process the messages
|
//process the messages
|
||||||
if (is_array($email_queue) && @sizeof($email_queue) != 0) {
|
if (is_array($email_queue) && @sizeof($email_queue) != 0) {
|
||||||
$which_php = exec('which php');
|
|
||||||
foreach($email_queue as $row) {
|
foreach($email_queue as $row) {
|
||||||
$command = $which_php." ".$_SERVER['DOCUMENT_ROOT']."/app/email_queue/resources/jobs/email_send.php ";
|
$command = PHP_BINARY." ".$_SERVER['DOCUMENT_ROOT']."/app/email_queue/resources/jobs/email_send.php ";
|
||||||
$command .= "'action=send&email_queue_uuid=".$row["email_queue_uuid"]."&hostname=".$hostname."'";
|
$command .= "'action=send&email_queue_uuid=".$row["email_queue_uuid"]."&hostname=".$hostname."'";
|
||||||
if (isset($debug)) {
|
if (isset($debug)) {
|
||||||
//run process inline to see debug info
|
//run process inline to see debug info
|
||||||
|
|||||||
Reference in New Issue
Block a user