release 0.9.5

master
Jean-Christian Paul Denis 2023-05-31 20:56:24 +02:00
parent bf436f5080
commit aa4af2e63a
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
4 changed files with 9 additions and 5 deletions

View File

@ -2,6 +2,10 @@ todo:
- add user pref cleaner - add user pref cleaner
- add meta 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 0.9.4 - 2023.05.14
- require Dotclear 2.26 and PHP 8.1+ - require Dotclear 2.26 and PHP 8.1+
- sort values list - sort values list

View File

@ -18,7 +18,7 @@ $this->registerModule(
'Uninstaller', 'Uninstaller',
'Uninstall cleanly plugins and themes', 'Uninstall cleanly plugins and themes',
'Jean-Christian Denis and Contributors', 'Jean-Christian Denis and Contributors',
'0.9.4', '0.9.5',
[ [
'requires' => [ 'requires' => [
['php', '8.1'], ['php', '8.1'],

View File

@ -2,10 +2,10 @@
<modules xmlns:da="http://dotaddict.org/da/"> <modules xmlns:da="http://dotaddict.org/da/">
<module id="Uninstaller"> <module id="Uninstaller">
<name>Uninstaller</name> <name>Uninstaller</name>
<version>0.9.4</version> <version>0.9.5</version>
<author>Jean-Christian Denis and Contributors</author> <author>Jean-Christian Denis and Contributors</author>
<desc>Uninstall cleanly plugins and themes</desc> <desc>Uninstall cleanly plugins and themes</desc>
<file>https://github.com/JcDenis/Uninstaller/releases/download/v0.9.4/plugin-Uninstaller.zip</file> <file>https://github.com/JcDenis/Uninstaller/releases/download/v0.9.5/plugin-Uninstaller.zip</file>
<da:dcmin>2.26</da:dcmin> <da:dcmin>2.26</da:dcmin>
<da:details>https://plugins.dotaddict.org/dc2/details/Uninstaller</da:details> <da:details>https://plugins.dotaddict.org/dc2/details/Uninstaller</da:details>
<da:support>https://github.com/JcDenis/Uninstaller</da:support> <da:support>https://github.com/JcDenis/Uninstaller</da:support>

View File

@ -90,9 +90,9 @@ class Backend extends dcNsProcess
// Do not perform action on disabled module if a duplicate exists. // Do not perform action on disabled module if a duplicate exists.
if ($define->get('state') != dcModuleDefine::STATE_ENABLED) { 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') == '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; return;
} }