mirror of
https://github.com/friendica/friendica
synced 2025-01-09 12:44:43 +00:00
Uninstall addon when it wasn't found when accessed from admin aside
This commit is contained in:
parent
f0f44dbd84
commit
5ff5325e14
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ class Details extends BaseAdminModule
|
||||||
$addon = $a->argv[2];
|
$addon = $a->argv[2];
|
||||||
$addon = Strings::sanitizeFilePathItem($addon);
|
$addon = Strings::sanitizeFilePathItem($addon);
|
||||||
if (!is_file("addon/$addon/$addon.php")) {
|
if (!is_file("addon/$addon/$addon.php")) {
|
||||||
notice(L10n::t('Item not found.'));
|
notice(L10n::t('Addon not found.'));
|
||||||
|
Addon::uninstall($addon);
|
||||||
$a->internalRedirect('admin/addons');
|
$a->internalRedirect('admin/addons');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue