Reduce number of calls to Hook::delete when uninstalling addons/themes

- Add a sweeping Hook deletion on theme uninstall (like for addons)
This commit is contained in:
Hypolite Petovan 2020-07-27 08:24:55 -04:00
parent 121bb85719
commit cd84f9a921
2 changed files with 2 additions and 12 deletions

View file

@ -158,6 +158,8 @@ class Theme
if (function_exists($func)) {
$func();
}
Hook::delete(['file' => "view/theme/$theme/theme.php"]);
}
$allowed_themes = Theme::getAllowedList();