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:
@@ -29,7 +29,7 @@
|
||||
|
||||
//get the background images
|
||||
$relative_path = PROJECT_PATH.'/themes/default/images/backgrounds';
|
||||
$backgrounds = opendir($_SERVER["DOCUMENT_ROOT"].'/'.$relative_path);
|
||||
$backgrounds = opendir(dirname(__DIR__, 2).'/'.$relative_path);
|
||||
unset($array);
|
||||
$x = 0;
|
||||
while (false !== ($file = readdir($backgrounds))) {
|
||||
|
||||
Reference in New Issue
Block a user