From f6370ef331b8cb1fab9afbc542c916c5b73adecd Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Mon, 24 Nov 2025 10:58:08 -0500 Subject: [PATCH] refactor: Simplify plugin option handling by removing unnecessary flags. Update logic to determine if a plugin is forced based solely on the presence of options, enhancing clarity in plugin processing. --- emhttp/plugins/dynamix.plugin.manager/scripts/plugin | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix.plugin.manager/scripts/plugin b/emhttp/plugins/dynamix.plugin.manager/scripts/plugin index eb468ddac..375f22d0d 100755 --- a/emhttp/plugins/dynamix.plugin.manager/scripts/plugin +++ b/emhttp/plugins/dynamix.plugin.manager/scripts/plugin @@ -618,8 +618,7 @@ if ($method == 'install' || $method == 'download') { done(1); } } - $non_flag_options = array_diff($options, ['force', 'forced']); - $forced = in_array('force', $options, true) || in_array('forced', $options, true) || !empty($non_flag_options); + $forced = !empty($options); if (pathinfo($plugin, PATHINFO_EXTENSION) != "plg") { write("plugin: $plugin is not a plg file\n"); done(1);