diff --git a/core/upgrade/index.php b/core/upgrade/index.php index d51b012718..376c7b54d8 100644 --- a/core/upgrade/index.php +++ b/core/upgrade/index.php @@ -53,7 +53,7 @@ if (sizeof($_POST) > 0) { // run source update if ($do["source"] && permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx")) { - chdir("/var/www/fusionpbx/"); + chdir($_SERVER["DOCUMENT_ROOT"]); exec("git pull", $response_source_update); $update_failed = true; if (sizeof($response_source_update) > 0) { diff --git a/resources/install/scripts/resources/functions/send_mail.lua b/resources/install/scripts/resources/functions/send_mail.lua index 52f8e647e4..430983ed2e 100644 --- a/resources/install/scripts/resources/functions/send_mail.lua +++ b/resources/install/scripts/resources/functions/send_mail.lua @@ -90,7 +90,7 @@ if freeswitch then if file then freeswitch.email(address, address, mail_headers, body, file) else - freeswitch.email(address, address, mail_headers, body, file) + freeswitch.email(address, address, mail_headers, body) end end end