From: Hypolite Petovan Date: Wed, 8 May 2019 04:46:42 +0000 (-0400) Subject: Uninstall addon when it wasn't found when accessed from admin aside X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5ff5325e14667d86f78d232cb9d4702944e7e4e3;p=friendica.git Uninstall addon when it wasn't found when accessed from admin aside --- diff --git a/src/Module/Admin/Addons/Details.php b/src/Module/Admin/Addons/Details.php index 33e7c7a00c..1fadf6768b 100644 --- a/src/Module/Admin/Addons/Details.php +++ b/src/Module/Admin/Addons/Details.php @@ -48,7 +48,8 @@ class Details extends BaseAdminModule $addon = $a->argv[2]; $addon = Strings::sanitizeFilePathItem($addon); 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'); }