mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Replace the DOCUMENT_ROOT and PROJECT_ROOT variables
Use the __DIR__ constant and dirname as needed
This commit is contained in:
@@ -174,7 +174,7 @@ if ($domains_processed == 1) {
|
||||
unset($sql, $parameters);
|
||||
|
||||
//add the dashboards
|
||||
$dashboard_config_file = glob($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/core/dashboard/resources/dashboard/config.php');
|
||||
$dashboard_config_file = glob(dirname(__DIR__, 2).'/core/dashboard/resources/dashboard/config.php');
|
||||
$x = 0;
|
||||
foreach($dashboard_config_file as $file) {
|
||||
include ($file);
|
||||
@@ -224,7 +224,7 @@ if ($domains_processed == 1) {
|
||||
unset($sql, $parameters);
|
||||
|
||||
//add the dashboard widgets
|
||||
$config_files = glob($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/*/*/resources/dashboard/config.php');
|
||||
$config_files = glob(dirname(__DIR__, 2).'/*/*/resources/dashboard/config.php');
|
||||
$x = 0;
|
||||
foreach($config_files as $file) {
|
||||
include ($file);
|
||||
|
||||
Reference in New Issue
Block a user