From 91caf1b1a64812bcfa55207a08a4b6ee72ba72e4 Mon Sep 17 00:00:00 2001 From: VladCleantalk Date: Tue, 3 Nov 2015 00:23:21 +0500 Subject: [PATCH] version 1.4.4 --- CleanTalk/Base/CleanTalk.php | 6 +++++- CleanTalk/Model/CleanTalk.php | 2 +- CleanTalk/addon-CleanTalk.xml | 2 +- addon-CleanTalk.xml | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CleanTalk/Base/CleanTalk.php b/CleanTalk/Base/CleanTalk.php index 252f8be..26f71b2 100644 --- a/CleanTalk/Base/CleanTalk.php +++ b/CleanTalk/Base/CleanTalk.php @@ -31,6 +31,7 @@ static public function getCheckjsValue() { public static function getTemplateAddon() { static $show_flag = TRUE; $ret_val = ''; + $options = XenForo_Application::getOptions(); if ($show_flag) { $show_flag = FALSE; @@ -44,7 +45,10 @@ function ctSetCookie(c_name, value) { ctSetCookie("%s", "%s"); '; $ret_val = sprintf($js_template, $field_name, $ct_check_value); - $ret_val.="
XenForo spam blocked by CleanTalk.
"; + if($options->get('cleantalk', 'link')) + { + $ret_val.="
XenForo spam blocked by CleanTalk.
"; + } } return $ret_val; } diff --git a/CleanTalk/Model/CleanTalk.php b/CleanTalk/Model/CleanTalk.php index 049dee1..8394f7d 100644 --- a/CleanTalk/Model/CleanTalk.php +++ b/CleanTalk/Model/CleanTalk.php @@ -114,7 +114,7 @@ protected function _checkSpam($spam_check, $options) { $ct_request = new CleantalkRequest(); $ct_request->auth_key = $ct_authkey; - $ct_request->agent = 'xenforo-143'; + $ct_request->agent = 'xenforo-144'; $ct_request->response_lang = 'en'; $ct_request->js_on = $checkjs; $ct_request->sender_info = $sender_info; diff --git a/CleanTalk/addon-CleanTalk.xml b/CleanTalk/addon-CleanTalk.xml index f5a6798..7afb423 100644 --- a/CleanTalk/addon-CleanTalk.xml +++ b/CleanTalk/addon-CleanTalk.xml @@ -1,5 +1,5 @@ - + diff --git a/addon-CleanTalk.xml b/addon-CleanTalk.xml index f5a6798..7afb423 100644 --- a/addon-CleanTalk.xml +++ b/addon-CleanTalk.xml @@ -1,5 +1,5 @@ - +