AC would always get enabled if docker folder was installed

pull/11/head
Squidly271 2022-11-13 14:38:04 -05:00
parent e70902c6ad
commit 16f87c9e7d
3 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
4e55f7483b661af21a25b677179baffe ./CA_notices.page
4c5d4598e1bafa46bd90c27cbe302122 ./ca_settings.page
e8d29607ec792ddf9f6832b10ee70fdc ./default.cfg
aed8d4eda97f849fff5b0a4d054b6637 ./include/exec.php
5865b879fdb3dbfb6c893cb49418c6bd ./include/exec.php
58943e7d6c7ded15b71f160bd4493f1d ./include/helpers.php
116042a918060278e77379b0dd73482c ./include/paths.php
532fffdf939594c143e679da02bd841e ./javascript/libraries.js

View File

@ -2443,6 +2443,9 @@ function enableActionCentre() {
if ( checkInstalledPlugin($template) ) {
$template['InstallPath'] = "/var/log/plugins/$filename";
$template['Uninstall'] = true;
if ( plugin("pluginURL","/var/log/plugins/$filename") !== $template['PluginURL'] )
continue;
$installedVersion = plugin("version","/var/log/plugins/$filename");
if ( ( strcmp($installedVersion,$template['pluginVersion']) < 0 || $template['UpdateAvailable']) ) {
$template['actionCentre'] = true;
@ -2472,7 +2475,6 @@ function enableActionCentre() {
break;
}
}
if ( isset($displayed) ) {
debug("action center enabled");
postReturn(['status'=>"action"]);