From: Hypolite Petovan Date: Wed, 8 May 2019 04:46:13 +0000 (-0400) Subject: Delete all addon hooks by default on uninstall X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f0f44dbd84063c3e56732ede07c4f2ef8f4b9a1d;p=friendica.git Delete all addon hooks by default on uninstall --- diff --git a/src/Core/Addon.php b/src/Core/Addon.php index b6f64ad742..2ec46b71c1 100644 --- a/src/Core/Addon.php +++ b/src/Core/Addon.php @@ -149,6 +149,8 @@ class Addon extends BaseObject $func(); } + DBA::delete('hook', ['file' => 'addon/' . $addon . '/' . $addon . '.php']); + unset(self::$addons[array_search($addon, self::$addons)]); Addon::saveEnabledList();