mirror of
https://github.com/friendica/friendica
synced 2025-04-24 07:10:11 +00:00
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:
parent
121bb85719
commit
cd84f9a921
2 changed files with 2 additions and 12 deletions
|
@ -158,6 +158,8 @@ class Theme
|
|||
if (function_exists($func)) {
|
||||
$func();
|
||||
}
|
||||
|
||||
Hook::delete(['file' => "view/theme/$theme/theme.php"]);
|
||||
}
|
||||
|
||||
$allowed_themes = Theme::getAllowedList();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue