diff --git a/CHANGELOG.md b/CHANGELOG.md index be95ce2..5ce799f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ todo: - add user pref cleaner - add meta cleaner +0.9.5 - 2023.05.31 +- require Dotclear 2.26 and PHP 8.1+ +- fix Traits constants in php 8.1 + 0.9.4 - 2023.05.14 - require Dotclear 2.26 and PHP 8.1+ - sort values list diff --git a/_define.php b/_define.php index 1b3a4f1..416314a 100644 --- a/_define.php +++ b/_define.php @@ -18,7 +18,7 @@ $this->registerModule( 'Uninstaller', 'Uninstall cleanly plugins and themes', 'Jean-Christian Denis and Contributors', - '0.9.4', + '0.9.5', [ 'requires' => [ ['php', '8.1'], diff --git a/dcstore.xml b/dcstore.xml index bc98117..740bb8f 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Uninstaller - 0.9.4 + 0.9.5 Jean-Christian Denis and Contributors Uninstall cleanly plugins and themes - https://github.com/JcDenis/Uninstaller/releases/download/v0.9.4/plugin-Uninstaller.zip + https://github.com/JcDenis/Uninstaller/releases/download/v0.9.5/plugin-Uninstaller.zip 2.26 https://plugins.dotaddict.org/dc2/details/Uninstaller https://github.com/JcDenis/Uninstaller diff --git a/src/Backend.php b/src/Backend.php index 03a1ea5..370cba5 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -90,9 +90,9 @@ class Backend extends dcNsProcess // Do not perform action on disabled module if a duplicate exists. if ($define->get('state') != dcModuleDefine::STATE_ENABLED) { - if (!in_array($define->get('type'), ['plugin', 'theme']) + if (!in_array($define->get('type'), ['plugin', 'theme']) || $define->get('type') == 'plugin' && 1 < count(dcCore::app()->plugins->getDefines(['id' => $define->getId()])) - || $define->get('type') == 'theme' && 1 < count(dcCore::app()->themes->getDefines(['id' => $define->getId()])) + || $define->get('type') == 'theme' && 1 < count(dcCore::app()->themes->getDefines(['id' => $define->getId()])) ) { return; }