mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
알림 수신 거부 기능을 드롭다운 메뉴에 추가 (#1301)
알림센터의 수신 거부 기능을 드롭다운 메뉴에 추가. * 알림 수신 설정 메뉴 트리거 코드 수정 * Unsubscribe_srl이 잘못된 값일 경우에 대한 오류 처리 추가 * Refining the unsubscribing methods * 사용하지 않는 변수 제거, 오류 문구 정리 * 사용할 필요가 없어진 $member_srl 변수 사용 안함. * 수신 거부 해제 대상이 아닌 컨텐츠를 수신 거부 해제 요청시 오류 문구 추가. * Support multi-lang for the unsubscribing page of default skin
This commit is contained in:
parent
81774f6e96
commit
43fe12af13
7 changed files with 144 additions and 32 deletions
|
|
@ -156,11 +156,11 @@ class ncenterliteView extends ncenterlite
|
|||
|
||||
if($unsubscribe_type == 'document')
|
||||
{
|
||||
$text = getModel('document')->getDocument($target_srl)->get('title');
|
||||
$type = '문서';
|
||||
$text = getModel('document')->getDocument($target_srl)->getTitleText();
|
||||
$type = lang('document');
|
||||
if(!$text)
|
||||
{
|
||||
$text = getModel('comment')->getComment($target_srl)->get('content');
|
||||
$text = getModel('comment')->getComment($target_srl)->getContentPlainText();
|
||||
if(!$text)
|
||||
{
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
|
|
@ -168,18 +168,18 @@ class ncenterliteView extends ncenterlite
|
|||
else
|
||||
{
|
||||
Context::set('unsubscribe_type', 'comment');
|
||||
$type = '댓글';
|
||||
$type = lang('comment');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$text = getModel('comment')->getComment($target_srl)->get('content');
|
||||
$type = '댓글';
|
||||
$text = getModel('comment')->getComment($target_srl)->getContentPlainText();
|
||||
$type = lang('comment');
|
||||
if(!$text)
|
||||
{
|
||||
$text = getModel('document')->getDocument($target_srl)->get('title');
|
||||
$text = getModel('document')->getDocument($target_srl)->getTitleText();
|
||||
if(!$text)
|
||||
{
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
|
|
@ -187,7 +187,7 @@ class ncenterliteView extends ncenterlite
|
|||
else
|
||||
{
|
||||
Context::set('unsubscribe_type', 'document');
|
||||
$type = '문서';
|
||||
$type = lang('document');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue