mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-02 22:19:19 +00:00
Replace the DOCUMENT_ROOT and PROJECT_ROOT variables
Use the __DIR__ constant and dirname as needed
This commit is contained in:
@@ -163,7 +163,7 @@ if ($domains_processed == 1) {
|
||||
}
|
||||
|
||||
//insert default password reset email template
|
||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].'/app/email_templates')) {
|
||||
if (file_exists(dirname(__DIR__, 2).'/app/email_templates')) {
|
||||
|
||||
//add the email templates to the database
|
||||
$sql = "select count(*) as num_rows from v_email_templates ";
|
||||
|
||||
Reference in New Issue
Block a user