From f79de469391d1dc0488f4fa6c6e656a5ad52fb26 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 9 May 2023 10:24:14 +0200 Subject: [PATCH] added direct actions are always selected ! --- src/Uninstaller.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Uninstaller.php b/src/Uninstaller.php index 333a9e0..5727b8f 100644 --- a/src/Uninstaller.php +++ b/src/Uninstaller.php @@ -163,18 +163,15 @@ class Uninstaller * user will NOT be prompted before these actions execution. * Note: If module is disabled, direct actions are not executed. * - * Leave $default param to null to let Cleaner decide. - * * @param string $cleaner The cleaner ID * @param string $action The action ID * @param string $ns Name of setting related to module - * @param null|null $default The default state of form field (checked) * * @return Uninstaller Uninstaller instance */ - public function addDirectAction(string $cleaner, string $action, string $ns, ?bool $default = null): Uninstaller + public function addDirectAction(string $cleaner, string $action, string $ns): Uninstaller { - if (null !== $this->module && null !== ($res = $this->addAction($cleaner, $action, $ns, $default))) { + if (null !== $this->module && null !== ($res = $this->addAction($cleaner, $action, $ns, true))) { if (!isset($this->direct_actions[$this->module->getId()])) { $this->direct_actions[$this->module->getId()] = new ActionsStack(); }