Browse Source

Fix so fusionpbx doesn't fail on servers with php versions later than 5. (e.g. php7).
Also a few warning causes fixed.
Also, one step along the way to allow freeswitch to be u freeswitch g freeswitch and fusionpbx to run www-data:www-data.

Harry G. Coin 9 years ago
parent
commit
89e5bd319b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/classes/fax.php

+ 1 - 1
resources/classes/fax.php

@@ -115,7 +115,7 @@ include "root.php";
 						$database->fields['dialplan_detail_order'] = '005';
 						$database->add();
 
-						if (file_exists(PHP_BINDIR."/php")) { define(PHP_BIN, 'php'); }
+						if (file_exists(PHP_BINDIR."/php5")) { define(PHP_BIN, 'php5'); }
 						if (file_exists(PHP_BINDIR."/php.exe")) {  define(PHP_BIN, 'php.exe'); }
 						$dialplan_detail_data = "api_hangup_hook=system ".PHP_BINDIR."/".PHP_BIN." ".$_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/secure/fax_to_email.php ";
 						$dialplan_detail_data .= "email=".$this->fax_email." ";