From 68bcb0c0607e67101570fdb4b19b103c0390d39e Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Mon, 30 Jan 2023 19:16:53 +0100 Subject: [PATCH] use new addBheviors method --- _prepend.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/_prepend.php b/_prepend.php index a1c1a88..d4b696a 100644 --- a/_prepend.php +++ b/_prepend.php @@ -34,13 +34,15 @@ Clearbricks::lib()->autoload([ 'advancedCleanerVars' => __DIR__ . '/inc/lib.advanced.cleaner.php', ]); -dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerVersions', 'create']); -dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerSettings', 'create']); -dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerTables', 'create']); -dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerThemes', 'create']); -dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerPlugins', 'create']); -dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerCaches', 'create']); -dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerVars', 'create']); +dcCore::app()->addBehaviors([ + 'advancedCleanerAdd' => ['advancedCleanerVersions', 'create'], + 'advancedCleanerAdd' => ['advancedCleanerSettings', 'create'], + 'advancedCleanerAdd' => ['advancedCleanerTables', 'create'], + 'advancedCleanerAdd' => ['advancedCleanerThemes', 'create'], + 'advancedCleanerAdd' => ['advancedCleanerPlugins', 'create'], + 'advancedCleanerAdd' => ['advancedCleanerCaches', 'create'], + 'advancedCleanerAdd' => ['advancedCleanerVars', 'create'], +]); if (defined('ACTIVITY_REPORT_V2')) { dcAdvancedCleanerActivityReportBehaviors::add();