Delete all addon hooks by default on uninstall
This commit is contained in:
parent
dcd602d02a
commit
f0f44dbd84
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user