Skip to content

Commit

Permalink
Merge pull request #13 from VladCleantalk/master
Browse files Browse the repository at this point in the history
version 1.4.4
  • Loading branch information
CleanTalk committed Nov 2, 2015
2 parents d5935d4 + 91caf1b commit 99f6f96
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CleanTalk/Base/CleanTalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -44,7 +45,10 @@ function ctSetCookie(c_name, value) {
ctSetCookie("%s", "%s");
</script>';
$ret_val = sprintf($js_template, $field_name, $ct_check_value);
$ret_val.="<div style='width:100%;text-align:center'><a href='https://cleantalk.org/xenforo-antispam-addon'>XenForo spam</a> blocked by CleanTalk.</div>";
if($options->get('cleantalk', 'link'))
{
$ret_val.="<div style='width:100%;text-align:center'><a href='https://cleantalk.org/xenforo-antispam-addon'>XenForo spam</a> blocked by CleanTalk.</div>";
}
}
return $ret_val;
}
Expand Down
2 changes: 1 addition & 1 deletion CleanTalk/Model/CleanTalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion CleanTalk/addon-CleanTalk.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<addon addon_id="CleanTalk" title="Antispam by CleanTalk" version_string="1.4.3" version_id="1" url="https://cleantalk.org" install_callback_class="" install_callback_method="" uninstall_callback_class="" uninstall_callback_method="">
<addon addon_id="CleanTalk" title="Antispam by CleanTalk" version_string="1.4.4" version_id="1" url="https://cleantalk.org" install_callback_class="" install_callback_method="" uninstall_callback_class="" uninstall_callback_method="">
<admin_navigation/>
<admin_permissions/>
<admin_style_properties/>
Expand Down
2 changes: 1 addition & 1 deletion addon-CleanTalk.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<addon addon_id="CleanTalk" title="Antispam by CleanTalk" version_string="1.4.3" version_id="1" url="https://cleantalk.org" install_callback_class="" install_callback_method="" uninstall_callback_class="" uninstall_callback_method="">
<addon addon_id="CleanTalk" title="Antispam by CleanTalk" version_string="1.4.4" version_id="1" url="https://cleantalk.org" install_callback_class="" install_callback_method="" uninstall_callback_class="" uninstall_callback_method="">
<admin_navigation/>
<admin_permissions/>
<admin_style_properties/>
Expand Down

0 comments on commit 99f6f96

Please sign in to comment.