mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Config class rewrite (#6965)
* Use a singleton pattern in the database class to re-use the database object inside the permission_exists function.
This commit is contained in:
@@ -607,8 +607,7 @@ if (!class_exists('domains')) {
|
||||
|
||||
//get the variables
|
||||
$config = new config;
|
||||
$config_path = $config->find();
|
||||
$config->get();
|
||||
$config_path = $config->config_file;
|
||||
|
||||
//get the list of installed apps from the core and app directories (note: GLOB_BRACE doesn't work on some systems)
|
||||
$config_list_1 = glob($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/*/*/app_config.php");
|
||||
|
||||
Reference in New Issue
Block a user