Skip to content

Commit

Permalink
fix js
Browse files Browse the repository at this point in the history
  • Loading branch information
davydovct committed Sep 28, 2017
1 parent 9e761c0 commit 57b2990
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CleanTalk/ControllerPublic/CleanTalkForum.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ public function actionCreateThread() {
if ($options->get('cleantalk', 'enabled_comm')) {
XenForo_Application::getSession()->set('ct_submit_comment_time', time());
$field_name = CleanTalk_Base_CleanTalk::getCheckjsName();
$ct_check_def = CleanTalk_Base_CleanTalk::getCheckjsDefaultValue();
setcookie($field_name, $ct_check_def, 0, '/');
$ct_check = CleanTalk_Base_CleanTalk::getCheckjsValue();
setcookie($field_name, $ct_check, 0, '/');
}
return parent::actionCreateThread();
}
Expand Down
4 changes: 2 additions & 2 deletions CleanTalk/ControllerPublic/CleanTalkPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ public function actionEdit() {
if ($options->get('cleantalk', 'enabled_comm')) {
XenForo_Application::getSession()->set('ct_submit_comment_time', time());
$field_name = CleanTalk_Base_CleanTalk::getCheckjsName();
$ct_check_def = CleanTalk_Base_CleanTalk::getCheckjsDefaultValue();
setcookie($field_name, $ct_check_def, 0, '/');
$ct_check = CleanTalk_Base_CleanTalk::getCheckjsValue();
setcookie($field_name, $ct_check, 0, '/');
}
return parent::actionEdit();
}
Expand Down
4 changes: 2 additions & 2 deletions CleanTalk/ControllerPublic/CleanTalkRegister.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ protected function _getRegisterFormResponse(array $fields, array $errors = array
if ($options->get('cleantalk', 'enabled_reg')) {
XenForo_Application::getSession()->set('ct_submit_register_time', time());
$field_name = CleanTalk_Base_CleanTalk::getCheckjsName();
$ct_check_def = CleanTalk_Base_CleanTalk::getCheckjsDefaultValue();
setcookie($field_name, $ct_check_def, 0, '/');
$ct_check = CleanTalk_Base_CleanTalk::getCheckjsValue();
setcookie($field_name, $ct_check, 0, '/');
}
return parent::_getRegisterFormResponse($fields, $errors);
}
Expand Down
4 changes: 2 additions & 2 deletions CleanTalk/ControllerPublic/CleanTalkThread.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ public function actionReply() {
if ($options->get('cleantalk', 'enabled_comm')) {
XenForo_Application::getSession()->set('ct_submit_comment_time', time());
$field_name = CleanTalk_Base_CleanTalk::getCheckjsName();
$ct_check_def = CleanTalk_Base_CleanTalk::getCheckjsDefaultValue();
setcookie($field_name, $ct_check_def, 0, '/');
$ct_check = CleanTalk_Base_CleanTalk::getCheckjsValue();
setcookie($field_name, $ct_check, 0, '/');
}
return parent::actionReply();
}
Expand Down

0 comments on commit 57b2990

Please sign in to comment.