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:
@@ -158,6 +158,8 @@ class Theme
|
||||
if (function_exists($func)) {
|
||||
$func();
|
||||
}
|
||||
|
||||
Hook::delete(['file' => "view/theme/$theme/theme.php"]);
|
||||
}
|
||||
|
||||
$allowed_themes = Theme::getAllowedList();
|
||||
|
||||
Reference in New Issue
Block a user