mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix misspelled variables and incorrect config references
This commit is contained in:
parent
867014d0f4
commit
0e013367a0
2 changed files with 20 additions and 20 deletions
|
|
@ -872,8 +872,8 @@ class BoardView extends Board
|
|||
if($oDocument->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
|
||||
{
|
||||
$format = lang('msg_protect_regdate_document');
|
||||
$massage = sprintf($format, $this->module_info->protect_document_regdate);
|
||||
throw new Rhymix\Framework\Exception($massage);
|
||||
$message = sprintf($format, $this->module_info->protect_document_regdate);
|
||||
throw new Rhymix\Framework\Exception($message);
|
||||
}
|
||||
}
|
||||
if ($this->module_info->protect_content === 'Y' || $this->module_info->protect_update_content === 'Y')
|
||||
|
|
@ -1096,18 +1096,18 @@ class BoardView extends Board
|
|||
{
|
||||
if($oDocument->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
|
||||
{
|
||||
$format = lang('msg_protect_regdate_document');
|
||||
$massage = sprintf($format, $this->module_info->protect_document_regdate);
|
||||
throw new Rhymix\Framework\Exception($massage);
|
||||
$format = lang('msg_protect_regdate_document');
|
||||
$message = sprintf($format, $this->module_info->protect_document_regdate);
|
||||
throw new Rhymix\Framework\Exception($message);
|
||||
}
|
||||
}
|
||||
|
||||
if($this->module_info->protect_content == "Y" || $this->module_info->protect_delete_content == 'Y')
|
||||
{
|
||||
$comment_limit = $this->module_info->protect_delete_content_limit ?? 1;
|
||||
if($oDocument->get('comment_count')>0 && $this->grant->manager == false)
|
||||
if($oDocument->get('comment_count') >= $comment_limit && $this->grant->manager == false)
|
||||
{
|
||||
throw new Rhymix\Framework\Exception(sprintf(lang('msg_protect_delete_content'), $comment_limit));
|
||||
return $this->dispBoardMessage(sprintf(lang('msg_protect_delete_content'), $comment_limit));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1292,11 +1292,11 @@ class BoardView extends Board
|
|||
|
||||
if($this->module_info->protect_comment_regdate > 0 && $this->grant->manager == false)
|
||||
{
|
||||
if($oComment->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
|
||||
if($oComment->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_comment_regdate.' day')))
|
||||
{
|
||||
$format = lang('msg_protect_regdate_comment');
|
||||
$massage = sprintf($format, $this->module_info->protect_document_regdate);
|
||||
throw new Rhymix\Framework\Exception($massage);
|
||||
$format = lang('msg_protect_regdate_comment');
|
||||
$message = sprintf($format, $this->module_info->protect_comment_regdate);
|
||||
throw new Rhymix\Framework\Exception($message);
|
||||
}
|
||||
}
|
||||
if($this->module_info->protect_update_comment === 'Y' && $this->grant->manager == false)
|
||||
|
|
@ -1380,11 +1380,11 @@ class BoardView extends Board
|
|||
|
||||
if($this->module_info->protect_comment_regdate > 0 && $this->grant->manager == false)
|
||||
{
|
||||
if($oComment->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
|
||||
if($oComment->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_comment_regdate.' day')))
|
||||
{
|
||||
$format = lang('msg_protect_regdate_comment');
|
||||
$massage = sprintf($format, $this->module_info->protect_document_regdate);
|
||||
throw new Rhymix\Framework\Exception($massage);
|
||||
$message = sprintf($format, $this->module_info->protect_comment_regdate);
|
||||
throw new Rhymix\Framework\Exception($message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue