Replace the DOCUMENT_ROOT and PROJECT_ROOT variables
Use the __DIR__ constant and dirname as needed
This commit is contained in:
@@ -498,7 +498,7 @@
|
||||
closelog();
|
||||
|
||||
//device logs
|
||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/device_logs/app_config.php")){
|
||||
if (file_exists(dirname(__DIR__, 2)."/app/device_logs/app_config.php")){
|
||||
require_once "app/device_logs/resources/device_logs.php";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user