Support in previous apps plugins-error
parent
5312f2bb72
commit
8a7377eabf
Binary file not shown.
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue