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:
@@ -446,9 +446,9 @@ if ($background_images_enabled) {
|
||||
}
|
||||
|
||||
if ($image_source == 'folder') {
|
||||
if (file_exists($_SERVER["DOCUMENT_ROOT"].$source_path)) {
|
||||
if (file_exists(dirname(__DIR__, 2).$source_path)) {
|
||||
//retrieve a random background image
|
||||
$dir_list = opendir($_SERVER["DOCUMENT_ROOT"].$source_path);
|
||||
$dir_list = opendir(dirname(__DIR__, 2).$source_path);
|
||||
$v_background_array = array();
|
||||
$x = 0;
|
||||
while (false !== ($file = readdir($dir_list))) {
|
||||
|
||||
Reference in New Issue
Block a user