mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use __dir__ to find resources/require.php
This commit is contained in:
@@ -391,6 +391,9 @@
|
||||
*/
|
||||
public function connect() {
|
||||
|
||||
//includes files
|
||||
//require dirname(__DIR__, 2) . "/resources/require.php";
|
||||
|
||||
//set the include path
|
||||
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
|
||||
set_include_path(parse_ini_file($conf[0])['document.root']);
|
||||
|
||||
Reference in New Issue
Block a user