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:
frytimo
2024-04-27 22:22:20 -03:00
committed by GitHub
parent 8a30f04125
commit 0b8edef82c
5 changed files with 368 additions and 141 deletions

View File

@@ -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");