mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix #1269 use proper translation for browser title
This commit is contained in:
parent
16b6b69276
commit
f5f2cd99e0
2 changed files with 6 additions and 2 deletions
|
|
@ -194,7 +194,9 @@ class boardController extends board
|
|||
// send an email to admin user
|
||||
if ($this->module_info->admin_mail && config('mail.default_from'))
|
||||
{
|
||||
$mail_title = sprintf(lang('msg_document_notify_mail'), $this->module_info->browser_title, cut_str($obj->title, 20, '...'));
|
||||
$browser_title = $this->module_info->browser_title;
|
||||
getController('module')->replaceDefinedLangCode($browser_title);
|
||||
$mail_title = sprintf(lang('msg_document_notify_mail'), $browser_title, cut_str($obj->title, 20, '...'));
|
||||
$mail_content = sprintf("From : <a href=\"%s\">%s</a><br/>\r\n%s", getFullUrl('', 'document_srl', $output->get('document_srl')), getFullUrl('', 'document_srl', $output->get('document_srl')), $obj->content);
|
||||
|
||||
$oMail = new \Rhymix\Framework\Mail();
|
||||
|
|
|
|||
|
|
@ -675,7 +675,9 @@ class commentController extends comment
|
|||
// If there is no problem to register comment then send an email to all admin were set in module admin panel
|
||||
if($module_info->admin_mail && $member_info->is_admin != 'Y')
|
||||
{
|
||||
$mail_title = sprintf(lang('msg_comment_notify_mail'), $module_info->browser_title, cut_str($oDocument->getTitleText(), 20, '...'));
|
||||
$browser_title = $module_info->browser_title;
|
||||
getController('module')->replaceDefinedLangCode($browser_title);
|
||||
$mail_title = sprintf(lang('msg_comment_notify_mail'), $browser_title, cut_str($oDocument->getTitleText(), 20, '...'));
|
||||
$url_comment = getFullUrl('','document_srl',$obj->document_srl).'#comment_'.$obj->comment_srl;
|
||||
if($using_validation)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue