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:
@@ -105,7 +105,7 @@ if ($db_type == "sqlite") {
|
||||
|
||||
//set the document_root
|
||||
if (empty($document_root)) {
|
||||
$document_root = $_SERVER["DOCUMENT_ROOT"];
|
||||
$document_root = dirname(__DIR__, 1);
|
||||
}
|
||||
|
||||
//prepare the database connection
|
||||
|
||||
Reference in New Issue
Block a user