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)) {

View File

@ -38,7 +38,7 @@
<td>{{ plugin.file }}.json</td>
<td>
{% if plugin.uninstall %}
<a href="?p=plugins&uninstall={{ plugin.file }}" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?');" title="Uninstall">
<a href="?p=plugins&uninstall={{ plugin.file }}" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure you want to uninstall {{ plugin.name }}?');" title="Uninstall">
<i class="fas fa-trash"></i>
</a>
{% endif %}