Support in previous apps plugins-error

pull/11/head
Squidly271 2021-03-11 09:50:04 -05:00
parent 5312f2bb72
commit 8a7377eabf
2 changed files with 6 additions and 3 deletions

View File

@ -1121,9 +1121,10 @@ if ( $caSettings['dockerRunning'] ) {
}
}
} else {
$all_plugs = glob("/boot/config/plugins-removed/*.plg");
$all_plugs = array_merge(glob("/boot/config/plugins-error/*.plg"),glob("/boot/config/plugins-removed/*.plg"));
file_put_contents("/tmp/blah",print_r($all_plugs,true));
foreach ($all_plugs as $oldplug) {
foreach ($file as $template) {
if ( basename($oldplug) == basename($template['Repository']) ) {
if ( ! file_exists("/boot/config/plugins/".basename($oldplug)) ) {
@ -1134,7 +1135,9 @@ if ( $caSettings['dockerRunning'] ) {
}
$template['Removable'] = true;
$template['InstallPath'] = $oldplug;
if ( $alreadySeen[$oldPlugURL] )
continue;
$alreadySeen[$oldPlugURL] = true;
$displayed[] = $template;
break;
}