Commit 79d89544 authored by Георгий Попов's avatar Георгий Попов Committed by George Popoff

Поправил шаблон сообщения об опечатке

parent 5c0d954f
......@@ -20,11 +20,10 @@ $_language['ru']['mail_subject'] = "Сообщение об опечатке";
$_language['ru']['mail_from'] = "Служба опечаток Etersoft";
$_language['ru']['mail_error'] = "Ошибка при отправлении письма";
$_language['ru']['mail_site'] = "Сайт:";
$_language['ru']['mail_url'] = "Ссылка:";
$_language['ru']['mail_site'] = "Сайт";
$_language['ru']['mail_url'] = "Ссылка";
$_language['ru']['mail_click_url'] = "нажмите";
$_language['ru']['mail_comment'] = "Предложенное исправление:";
$_language['ru']['mail_comment'] = "Контекст:";
$_language['ru']['mail_text'] = "Текст с опечаткой:";
$_language['ru']['mail_comment'] = "Предложенное исправление";
$_language['ru']['mail_context'] = "Контекст";
$_language['ru']['mail_text'] = "Текст с опечаткой";
?>
......@@ -80,8 +80,6 @@ if (!isset($mas_url['host'])) {
* - отправка писем
* ******************************** */
error_log("Host = {$mas_url["host"]}");
/* Достаем номер сайта и email-ы пользователей */
try {
$query_emails = "SELECT r.id_site AS id_site,
......@@ -132,10 +130,10 @@ if ($email_users) {
$message_email = "<p>" . $_language[$code_language]['mail_site'] . " <a href=" . $mas_url["scheme"] . "://" . $mas_url["host"] . ">" . $mas_url["scheme"] . "://" . $mas_url["host"] . "</a></p>";
$message_email .= "<p>" . $_language[$code_language]['mail_url'] . " <a href=" . htmlspecialchars($userdata['url']) . ">" . $_language[$code_language]['mail_click_url'] . "</a>" . " (" . $userdata['url'] . ")" . "</p>";
$message_email .= "<p>" . $_language[$code_language]['mail_text'] . " " . htmlspecialchars($userdata['text']) . "</p>";
$message_email .= "<p>" . $_language[$code_language]['mail_context'] . " " . htmlspecialchars($userdata['context']) . "</p>";
$message_email .= "<p>" . $_language[$code_language]['mail_comment'] . " " . htmlspecialchars($userdata['comment']) . "</p>";
$message_email .= "<p>{$_language[$code_language]['mail_text']}: <i>{$userdata['text']}</i></p>";
$message_email .= "<p>{$_language[$code_language]['mail_comment']}: <i>{$userdata['comment']}</i></p>";
$message_email .= "<p>{$_language[$code_language]['mail_context']}: \"{$userdata['context']}\"</p>";
$subject = '=?utf-8?B?' . base64_encode($_language[$code_language]['mail_subject']) . '?=';
$to = toEmail($email_users);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment