From 872bcb551f05c0caa923619039a9e625e54ea99c Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 22 Dec 2022 22:47:14 +0100 Subject: [PATCH] fix disabled behavior --- _admin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_admin.php b/_admin.php index 7bcbc38..bd2ae54 100644 --- a/_admin.php +++ b/_admin.php @@ -27,7 +27,9 @@ dcCore::app()->addBehavior('adminDashboardFavoritesV2', function ($favs) { }); dcCore::app()->addBehavior('packmanBeforeCreatePackage', function ($module) { - licenseBootstrap::addLicense($module); + if (dcCore::app()->blog->settings->get(basename(__DIR__))->get('behavior_packman')) { + licenseBootstrap::addLicense($module); + } }); dcCore::app()->menu[dcAdmin::MENU_PLUGINS]->addItem(