알림센터 목록 수 조정 옵션 추가

This commit is contained in:
BJRambo 2021-04-16 17:16:45 +09:00
parent 34db077871
commit e7f3f75839
4 changed files with 39 additions and 0 deletions

View file

@ -80,6 +80,11 @@ class ncenterliteModel extends ncenterlite
$config->highlight_effect = 'Y';
}
if(!$config->notify_count)
{
$config->notify_count = 5;
}
self::$_config = $config;
}
@ -385,11 +390,19 @@ class ncenterliteModel extends ncenterlite
$args = new stdClass();
$args->member_srl = $member_srl;
$args->page = $page ? $page : 1;
if ($readed)
{
$args->readed = $readed;
}
$notify_count = intval(self::getConfig()->notify_count);
if($notify_count)
{
$args->list_count = $notify_count;
}
$output = executeQueryArray('ncenterlite.getNotifyList', $args);
if (!$output->data)
{