diff --git a/app/helpers/email_helper.php b/app/helpers/email_helper.php index 2364306..38c9a93 100644 --- a/app/helpers/email_helper.php +++ b/app/helpers/email_helper.php @@ -78,7 +78,7 @@ function sendTemplateEmail($to, $subject, $templateName, $variables, $config, $a try { $message = renderEmailTemplate($templateName, $variables, $options); - $fromDomain = $config['domain'] ?? ($_SERVER['HTTP_HOST'] ?? 'totalmeet.local'); + $fromDomain = $config['domain'] ?? ($_SERVER['HTTP_HOST'] ?? 'localhost'); $headers = array_merge([ 'From: noreply@' . $fromDomain, 'X-Mailer: PHP/' . phpversion(), diff --git a/app/templates/profile.php b/app/templates/profile.php index 7228155..0a34292 100644 --- a/app/templates/profile.php +++ b/app/templates/profile.php @@ -15,6 +15,7 @@ $rightsNames = array_filter($rightsNames, function ($label) { }); $rightsCount = count($rightsNames); $displayName = $name ?: $username ?: 'User profile'; +$profileUserIdForHooks = (int)($user['user_id'] ?? ($userId ?? 0)); $timezoneDisplay = ''; if ($timezoneName) { if ($timezoneOffset !== '') { @@ -35,7 +36,7 @@ if ($timezoneName) {
Personal details and access summary for this TotalMeet account.
+Personal details and access summary for your = htmlspecialchars($config['site_name']); ?> account.