浏览代码

Fix path issue in require.php.

reliberate 9 年之前
父节点
当前提交
02478f1e97
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resources/require.php

+ 1 - 1
resources/require.php

@@ -36,7 +36,7 @@
 		$config_exists = true;
 		include "/usr/local/etc/fusionpbx/config.php";
 	}
-	elseif (file_exists("resources/config.php")) {
+	elseif (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/config.php")) {
 		$config_exists = true;
 		include "resources/config.php";
 	}