mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
메일알림을 받을시 알림을 알려주는 사이트가 어디인지 명확하게 확인하도록 개선
This commit is contained in:
parent
b4239c1c61
commit
759f46bbe8
3 changed files with 30 additions and 2 deletions
|
|
@ -23,6 +23,8 @@ $lang->ncenterlite_mention_noti = 'Mention notice';
|
|||
$lang->ncenterlite_mention_noti_about = 'Get notice of a mention after someone mention me on documents and/or comments. ( @Nickname to mention )';
|
||||
$lang->ncenterlite_message_noti = 'Message notice';
|
||||
$lang->ncenterlite_message_noti_about = 'Get notice of a message after someone send the message to me.';
|
||||
$lang->ncenterlite_comment_comment_noti = 'A comment on a comment notice';
|
||||
$lang->ncenterlite_vote_noti = 'Upvote notice';
|
||||
$lang->ncenterlite_activate = 'Activate';
|
||||
$lang->ncenterlite_inactivate = 'Inactivate';
|
||||
$lang->ncenterlite_userconfig_about_warning = 'Watch out! You are controlling other user\'s settings via this page.';
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ $lang->ncenterlite_mention_noti = '멘션 알림';
|
|||
$lang->ncenterlite_mention_noti_about = '누군가 글, 혹은 댓글을 통해서 나를 멘션 했을 경우 알려줍니다. (멘션 방법 @닉네임 )';
|
||||
$lang->ncenterlite_message_noti = '쪽지 알림';
|
||||
$lang->ncenterlite_message_noti_about = '누군가에게 받은 쪽지를 알림을 받습니다.';
|
||||
$lang->ncenterlite_comment_comment_noti = '대댓글 알림';
|
||||
$lang->ncenterlite_vote_noti = '추천 알림';
|
||||
$lang->ncenterlite_activate = '사용';
|
||||
$lang->ncenterlite_inactivate = '사용 안함';
|
||||
$lang->ncenterlite_userconfig_about_warning = '주의! 당신은 관리자 권한으로 다른 사용자의 설정창에 접속하였습니다.';
|
||||
|
|
|
|||
|
|
@ -1313,8 +1313,32 @@ class ncenterliteController extends ncenterlite
|
|||
return false;
|
||||
}
|
||||
$content = $oNcenterliteModel->getNotificationText($args);
|
||||
$content_cut = preg_replace('/<\/?(strong|)[^>]*>/', '', $content);
|
||||
$mail_title = cut_str($content_cut, 20);
|
||||
|
||||
switch ($args->config_type)
|
||||
{
|
||||
case 'admin_content':
|
||||
$mail_title = Context::getSiteTitle() . ' ' . lang('ncenterlite_admin_content');
|
||||
break;
|
||||
case 'comment_comment':
|
||||
$mail_title = Context::getSiteTitle() . ' ' . lang('ncenterlite_comment_comment_noti');
|
||||
break;
|
||||
case 'comment':
|
||||
$mail_title = Context::getSiteTitle() . ' ' . lang('ncenterlite_comment_noti');
|
||||
break;
|
||||
case 'message':
|
||||
$mail_title = Context::getSiteTitle() . ' ' . lang('ncenterlite_message_noti');
|
||||
break;
|
||||
case 'vote':
|
||||
$mail_title = Context::getSiteTitle() . ' ' . lang('ncenterlite_vote_noti');
|
||||
break;
|
||||
case 'mention':
|
||||
$mail_title = Context::getSiteTitle() . ' ' . lang('ncenterlite_mention_noti');
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
$content = $content . '<br>' . Context::getSiteTitle() . '<br>' . Rhymix\Framework\URL::getCurrentDomainUrl($args->target_url);
|
||||
|
||||
$member_info = getModel('member')->getMemberInfoByMemberSrl($args->member_srl);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue