From f12fc1f2e0a89d2f5047d0a0776c28557a76b126 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Wed, 30 Nov 2022 23:46:41 +0100 Subject: [PATCH] fix autoload --- _prepend.php | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/_prepend.php b/_prepend.php index 592a39b..f5fd192 100644 --- a/_prepend.php +++ b/_prepend.php @@ -18,20 +18,24 @@ if (!defined('DC_CONTEXT_ADMIN')) { } # dcac class -Clearbricks::lib()->autoload(['advancedCleaner' => __DIR__ . '/inc/class.advanced.cleaner.php']); -Clearbricks::lib()->autoload(['dcAdvancedCleaner' => __DIR__ . '/inc/class.dc.advanced.cleaner.php']); -Clearbricks::lib()->autoload(['behaviorsDcAdvancedCleaner' => __DIR__ . '/inc/lib.dc.advanced.cleaner.behaviors.php']); -Clearbricks::lib()->autoload(['dcUninstaller' => __DIR__ . '/inc/class.dc.uninstaller.php']); -Clearbricks::lib()->autoload(['dcAdvancedCleanerActivityReportBehaviors' => __DIR__ . '/inc/lib.dc.advanced.cleaner.activityreport.php']); +Clearbricks::lib()->autoload([ + 'advancedCleaner' => __DIR__ . '/inc/class.advanced.cleaner.php', + 'dcAdvancedCleaner' => __DIR__ . '/inc/class.dc.advanced.cleaner.php', + 'behaviorsDcAdvancedCleaner' => __DIR__ . '/inc/lib.dc.advanced.cleaner.behaviors.php', + 'dcUninstaller' => __DIR__ . '/inc/class.dc.uninstaller.php', + 'dcAdvancedCleanerActivityReportBehaviors' => __DIR__ . '/inc/lib.dc.advanced.cleaner.activityreport.php', +]); # cleaners class -Clearbricks::lib()->autoload(['advancedCleanerVersions' => __DIR__ . '/inc/lib.advanced.cleaner.php']); -Clearbricks::lib()->autoload(['advancedCleanerSettings' => __DIR__ . '/inc/lib.advanced.cleaner.php']); -Clearbricks::lib()->autoload(['advancedCleanerTables' => __DIR__ . '/inc/lib.advanced.cleaner.php']); -Clearbricks::lib()->autoload(['advancedCleanerThemes' => __DIR__ . '/inc/lib.advanced.cleaner.php']); -Clearbricks::lib()->autoload(['advancedCleanerPlugins' => __DIR__ . '/inc/lib.advanced.cleaner.php']); -Clearbricks::lib()->autoload(['advancedCleanerCaches' => __DIR__ . '/inc/lib.advanced.cleaner.php']); -Clearbricks::lib()->autoload(['advancedCleanerVars' => __DIR__ . '/inc/lib.advanced.cleaner.php']); +Clearbricks::lib()->autoload([ + 'advancedCleanerVersions' => __DIR__ . '/inc/lib.advanced.cleaner.php', + 'advancedCleanerSettings' => __DIR__ . '/inc/lib.advanced.cleaner.php', + 'advancedCleanerTables' => __DIR__ . '/inc/lib.advanced.cleaner.php', + 'advancedCleanerThemes' => __DIR__ . '/inc/lib.advanced.cleaner.php', + 'advancedCleanerPlugins' => __DIR__ . '/inc/lib.advanced.cleaner.php', + 'advancedCleanerCaches' => __DIR__ . '/inc/lib.advanced.cleaner.php', + 'advancedCleanerVars' => __DIR__ . '/inc/lib.advanced.cleaner.php', +]); dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerVersions', 'create']); dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerSettings', 'create']);