mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
알림 숨기기 항목에 설정된 값으로 해당 모듈에서 알림이 발생되지 않도록 개선
This commit is contained in:
parent
a2a8e99ef1
commit
67e4da30d9
2 changed files with 14 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ $lang->ncenterlite_sender = '보낸 사람';
|
|||
$lang->ncenterlite_addressee = '받는 사람';
|
||||
$lang->ncenterlite_noti_contents = '내용';
|
||||
$lang->ncenterlite_notify_setting = '알림 미표시 페이지';
|
||||
$lang->ncenterlite_about_notify_setting = '선택한 모듈에서는 알림을 표시하지 않습니다.';
|
||||
$lang->ncenterlite_about_notify_setting = '선택한 모듈에서는 알림을 표시하지 않습니다. 그리고 알림을 전송하지도 않습니다.';
|
||||
$lang->ncenterlite_notify_mid_all = '관리자 알림 페이지';
|
||||
$lang->ncenterlite_about_mid_all = '선택한 모듈에서는 모든 알림이 관리자에게도 전달됩니다.';
|
||||
$lang->ncenterlite_admin_content = '관리자 알림';
|
||||
|
|
|
|||
|
|
@ -242,6 +242,7 @@ class ncenterliteController extends ncenterlite
|
|||
$args->target_summary = cut_str(strip_tags($obj->title), 50);
|
||||
$args->regdate = date('YmdHis');
|
||||
$args->target_browser = $module_info->browser_title;
|
||||
$args->module_srl = $obj->module_srl;
|
||||
$args->notify = $this->_getNotifyId($args);
|
||||
$output = $this->_insertNotify($args, $is_anonymous);
|
||||
if(!$output->toBool())
|
||||
|
|
@ -301,6 +302,7 @@ class ncenterliteController extends ncenterlite
|
|||
$args->target_email_address = $obj->email_address;
|
||||
$args->regdate = date('YmdHis');
|
||||
$args->target_browser = $module_info->browser_title;
|
||||
$args->module_srl = $module_info->module_srl;
|
||||
$args->notify = $this->_getNotifyId($args);
|
||||
$output = $this->_insertNotify($args, $is_anonymous);
|
||||
if(!$output->toBool())
|
||||
|
|
@ -336,6 +338,7 @@ class ncenterliteController extends ncenterlite
|
|||
$args->target_email_address = $obj->email_address;
|
||||
$args->regdate = date('YmdHis');
|
||||
$args->target_browser = $module_info->browser_title;
|
||||
$args->module_srl = $module_info->module_srl;
|
||||
$args->notify = $this->_getNotifyId($args);
|
||||
$output = $this->_insertNotify($args, $is_anonymous);
|
||||
if($output->toBool())
|
||||
|
|
@ -419,6 +422,7 @@ class ncenterliteController extends ncenterlite
|
|||
$args->target_email_address = $obj->email_address;
|
||||
$args->regdate = $regdate;
|
||||
$args->target_browser = $module_info->browser_title;
|
||||
$args->module_srl = $module_info->module_srl;
|
||||
$args->notify = $this->_getNotifyId($args);
|
||||
$output = $this->_insertNotify($args, $is_anonymous);
|
||||
if(!$output->toBool())
|
||||
|
|
@ -468,6 +472,7 @@ class ncenterliteController extends ncenterlite
|
|||
$args->target_email_address = $obj->email_address;
|
||||
$args->regdate = $regdate;
|
||||
$args->target_browser = $module_info->browser_title;
|
||||
$args->module_srl = $module_info->module_srl;
|
||||
$args->notify = $this->_getNotifyId($args);
|
||||
$output = $this->_insertNotify($args, $is_anonymous);
|
||||
if(!$output->toBool())
|
||||
|
|
@ -590,6 +595,7 @@ class ncenterliteController extends ncenterlite
|
|||
$args->regdate = date('YmdHis');
|
||||
$args->notify = $this->_getNotifyId($args);
|
||||
$args->target_url = getNotEncodedUrl('', 'document_srl', $obj->document_srl);
|
||||
$args->module_srl = $obj->module_srl;
|
||||
$this->_insertNotify($args);
|
||||
}
|
||||
|
||||
|
|
@ -655,6 +661,7 @@ class ncenterliteController extends ncenterlite
|
|||
$args->target_type = $this->_TYPE_VOTED;
|
||||
$args->target_summary = cut_str(trim(utf8_normalize_spaces(strip_tags($content))), 50);
|
||||
$args->regdate = date('YmdHis');
|
||||
$args->module_srl = $obj->module_srl;
|
||||
$args->notify = $this->_getNotifyId($args);
|
||||
$args->target_url = getNotEncodedUrl('', 'document_srl', $document_srl, 'comment_srl', $obj->comment_srl) . '#comment_' . $obj->comment_srl;
|
||||
$this->_insertNotify($args);
|
||||
|
|
@ -1173,6 +1180,12 @@ class ncenterliteController extends ncenterlite
|
|||
|
||||
function _insertNotify($args, $anonymous = FALSE)
|
||||
{
|
||||
$config = getModel('ncenterlite')->getConfig();
|
||||
|
||||
if(is_array($config->hide_module_srls) && in_array($args->module_srl, $config->hide_module_srls))
|
||||
{
|
||||
return new BaseObject();
|
||||
}
|
||||
// 비회원 노티 제거
|
||||
if($args->member_srl <= 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue