add info which plugin is going to be uninstalled

This commit is contained in:
slawkens
2023-02-16 07:21:38 +01:00
parent c7ec1f44e9
commit d04e44f52f
2 changed files with 2 additions and 2 deletions

View File

@@ -796,7 +796,7 @@ function get_plugins($disabled = false): array
$ret = [];
$path = PLUGINS;
foreach(scandir($path, SCANDIR_SORT_DESCENDING) as $file) {
foreach(scandir($path, SCANDIR_SORT_ASCENDING) as $file) {
$file_ext = pathinfo($file, PATHINFO_EXTENSION);
$file_name = pathinfo($file, PATHINFO_FILENAME);
if ($file === '.' || $file === '..' || $file === 'example.json' || $file_ext !== 'json' || is_dir($path . $file)) {