Fix the include path
This commit is contained in:
parent
03ac05fc64
commit
61d8b54dcb
|
|
@ -25,8 +25,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//set the include path
|
//set the include path
|
||||||
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
|
$document_root = substr(getcwd(), 0, strlen($document_root) - strlen('/core/install'));
|
||||||
set_include_path(parse_ini_file($conf[0])['document.root']);
|
set_include_path($document_root);
|
||||||
|
|
||||||
//includes files
|
//includes files
|
||||||
require_once "resources/functions.php";
|
require_once "resources/functions.php";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue