]> git.mxchange.org Git - friendica.git/commitdiff
Delete all addon hooks by default on uninstall
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 8 May 2019 04:46:13 +0000 (00:46 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 8 May 2019 04:46:13 +0000 (00:46 -0400)
src/Core/Addon.php

index b6f64ad7422f4a451672b4e8cb2d06769c1a691b..2ec46b71c1835b2792841c4d418a1c2e03ac5ff6 100644 (file)
@@ -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();