]> git.mxchange.org Git - friendica.git/commitdiff
Uninstall addon when it wasn't found when accessed from admin aside
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 8 May 2019 04:46:42 +0000 (00:46 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 8 May 2019 04:46:42 +0000 (00:46 -0400)
src/Module/Admin/Addons/Details.php

index 33e7c7a00cce9694b6f60a019e9081a3177a3a64..1fadf6768bbdf670062215c96df925cc87c18e22 100644 (file)
@@ -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');
                        }