We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fce923f commit 637c0c5Copy full SHA for 637c0c5
cleantalk.php
@@ -1083,8 +1083,11 @@ function ct_sfw_send_logs($api_key = '')
1083
1084
if( $apbct->settings['spam_firewall'] == 1 && ( ! empty($api_key) || $apbct->data['moderate_ip'] ) ) {
1085
1086
- $sfw = new CleantalkSFW();
1087
- $result = $sfw->logs__send($api_key);
+ $result = \Cleantalk\ApbctWP\Firewall\SFW::send_log(
+ \Cleantalk\ApbctWP\DB::getInstance(),
1088
+ defined('APBCT_TBL_FIREWALL_LOG') ? APBCT_TBL_FIREWALL_LOG : $this->db->prefix . 'cleantalk_sfw_logs',
1089
+ $api_key
1090
+ );
1091
1092
if(empty($result['error'])){
1093
$apbct->stats['sfw']['last_send_time'] = time();
0 commit comments