From 796674e8159b6b596da0451d6702fffe2ca78bd8 Mon Sep 17 00:00:00 2001 From: Matthew Vale Date: Fri, 8 Jan 2016 10:57:09 +0000 Subject: [PATCH] Changed upgrade to use PROJECT_ROOT instead --- core/upgrade/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/upgrade/index.php b/core/upgrade/index.php index 898d3a912d..7106b320ed 100644 --- a/core/upgrade/index.php +++ b/core/upgrade/index.php @@ -52,7 +52,7 @@ if (sizeof($_POST) > 0) { // run source update if ($do["source"] && permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx")) { - chdir($_SERVER["DOCUMENT_ROOT"]); + chdir($_SERVER["PROJECT_ROOT"]); exec("git pull", $response_source_update); $update_failed = true; if (sizeof($response_source_update) > 0) {