浏览代码

Changed upgrade to use PROJECT_ROOT instead

Matthew Vale 9 年之前
父节点
当前提交
45f28aac7e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/upgrade/index.php

+ 1 - 1
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) {