mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Update document.model.php
현재 페이지 구하는 함수에 regdate 순 정렬로도 구하도록 추가
This commit is contained in:
parent
29bdbce5c4
commit
16483ced2e
1 changed files with 13 additions and 0 deletions
|
|
@ -650,6 +650,19 @@ class documentModel extends document
|
|||
$args->{$sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
|
||||
}
|
||||
}
|
||||
elseif($sort_check->sort_index === 'regdate')
|
||||
{
|
||||
|
||||
if($args->order_type === 'asc')
|
||||
{
|
||||
$args->{'rev_' . $sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
|
||||
}
|
||||
else
|
||||
{
|
||||
$args->{$sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue