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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue