Delete all addon hooks by default on uninstall
This commit is contained in:
parent
dcd602d02a
commit
f0f44dbd84
1 changed files with 2 additions and 0 deletions
|
@ -149,6 +149,8 @@ class Addon extends BaseObject
|
||||||
$func();
|
$func();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DBA::delete('hook', ['file' => 'addon/' . $addon . '/' . $addon . '.php']);
|
||||||
|
|
||||||
unset(self::$addons[array_search($addon, self::$addons)]);
|
unset(self::$addons[array_search($addon, self::$addons)]);
|
||||||
|
|
||||||
Addon::saveEnabledList();
|
Addon::saveEnabledList();
|
||||||
|
|
Loading…
Reference in a new issue