Fix misspelled variables and incorrect config references

This commit is contained in:
Kijin Sung 2026-02-06 21:48:23 +09:00
parent 867014d0f4
commit 0e013367a0
2 changed files with 20 additions and 20 deletions

View file

@ -597,11 +597,11 @@ class BoardController extends Board
{
if($this->module_info->protect_comment_regdate > 0 && $this->grant->manager == false)
{
if($comment->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
if($comment->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);
}
}
// check the grant
@ -678,11 +678,11 @@ class BoardController extends Board
if($this->module_info->protect_comment_regdate > 0 && $this->grant->manager == false)
{
if($comment->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
if($comment->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);
}
}
// generate comment controller object