mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 08:42:15 +09:00
Add option to customize the number of days until a document is considered old
This commit is contained in:
parent
0fdb48c31a
commit
72651ed095
3 changed files with 6 additions and 2 deletions
|
|
@ -534,7 +534,8 @@ class boardView extends board
|
|||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
if($oDocument->isExists() && !$oDocument->isNotice())
|
||||
{
|
||||
if($oDocument->getRegdateTime() < (time() - (86400 * 30)) && $this->module_info->skip_bottom_list_for_olddoc === 'Y')
|
||||
$days = $this->module_info->skip_bottom_list_days ?: 30;
|
||||
if($oDocument->getRegdateTime() < (time() - (86400 * $days)) && $this->module_info->skip_bottom_list_for_olddoc === 'Y')
|
||||
{
|
||||
Context::set('page', $args->page = null);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue