Delete all addon hooks by default on uninstall

This commit is contained in:
Hypolite Petovan 2019-05-08 00:46:13 -04:00
parent dcd602d02a
commit f0f44dbd84

View 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();