Skip to content

Commit 637c0c5

Browse files
safroniksafronik
authored andcommitted
New: Firewall module logic #2.
1 parent fce923f commit 637c0c5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cleantalk.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,8 +1083,11 @@ function ct_sfw_send_logs($api_key = '')
10831083

10841084
if( $apbct->settings['spam_firewall'] == 1 && ( ! empty($api_key) || $apbct->data['moderate_ip'] ) ) {
10851085

1086-
$sfw = new CleantalkSFW();
1087-
$result = $sfw->logs__send($api_key);
1086+
$result = \Cleantalk\ApbctWP\Firewall\SFW::send_log(
1087+
\Cleantalk\ApbctWP\DB::getInstance(),
1088+
defined('APBCT_TBL_FIREWALL_LOG') ? APBCT_TBL_FIREWALL_LOG : $this->db->prefix . 'cleantalk_sfw_logs',
1089+
$api_key
1090+
);
10881091

10891092
if(empty($result['error'])){
10901093
$apbct->stats['sfw']['last_send_time'] = time();

0 commit comments

Comments
 (0)