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
1 changed files with 2 additions and 0 deletions

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