Skip to content
Snippets Groups Projects
Commit a060714f authored by alexandergull's avatar alexandergull Committed by glomberg
Browse files

9.1.x sfw update enhancements.ag

parent 509c1242
No related branches found
Tags 9.3.3
1 merge request!169.1.x sfw update enhancements.ag
Pipeline #278964 failed
......@@ -827,7 +827,7 @@ class CleantalkFuncs
\Drupal::config('cleantalk.settings')->get('cleantalk_authkey') ?: ''
);
if (empty($access_key)) {
return FALSE;
return false;
}
}
$firewall = new Firewall(
......@@ -837,6 +837,7 @@ class CleantalkFuncs
$fw_updater = $firewall->getUpdater();
$fw_updater->update();
return true;
}
public static function apbct_sfw_send_logs($access_key = '') {
......
......@@ -126,6 +126,12 @@ class BootSubscriber implements HttpKernelInterface
$locale_code
);
$fw_stats = Firewall::getFwStats();
if (empty($fw_stats->updating_folder)) {
$fw_stats->updating_folder = StorageHandler::getUpdatingFolder();
Firewall::saveFwStats($fw_stats);
}
$firewall->loadFwModule(new SFW(
APBCT_TBL_FIREWALL_LOG,
APBCT_TBL_FIREWALL_DATA
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment