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:
@@ -43,12 +43,8 @@ if (!class_exists('schema')) {
|
||||
$database->connect();
|
||||
$this->db = $database->db;
|
||||
|
||||
//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']);
|
||||
|
||||
//includes files
|
||||
include "resources/require.php";
|
||||
require_once dirname(__DIR__, 2) . "/resources/require.php";
|
||||
|
||||
//get the list of installed apps from the core and mod directories
|
||||
$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
|
||||
@@ -491,12 +487,8 @@ if (!class_exists('schema')) {
|
||||
$db_path = $config->db_path;
|
||||
$db_port = $config->db_port;
|
||||
|
||||
//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']);
|
||||
|
||||
//includes files
|
||||
include "resources/require.php";
|
||||
require_once dirname(__DIR__, 2) . "/resources/require.php";
|
||||
|
||||
//add multi-lingual support
|
||||
if (!isset($text)) {
|
||||
|
||||
Reference in New Issue
Block a user