From d760814fb540cd7bf3333c0080da72ff788d2e11 Mon Sep 17 00:00:00 2001 From: iliajie Date: Sat, 3 Sep 2022 03:56:18 +0300 Subject: [PATCH] Fix not to create unnecessary dependency --- authentic-funcs.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/authentic-funcs.pl b/authentic-funcs.pl index 966558599..f4f87febf 100644 --- a/authentic-funcs.pl +++ b/authentic-funcs.pl @@ -891,16 +891,16 @@ sub init_prefail !defined(&setvar) || # Affects upgrades from before 1.995 - !defined(&webmin_user_can_rpc) || + !defined(&webmin_user_can_rpc) || !defined(&webmin_user_is_admin) || # Affects upgrades from before 2.000 - !defined(&get_webmin_full_version)) + (get_webmin_version() >= 2 && !defined(&get_webmin_full_version))) { load_theme_library(); do("$root_directory/web-lib-funcs.pl"); setvar('needs-restart', has_command('systemctl') || $config_directory) - if (defined(&setvar)); + if (defined(&setvar)); } }