mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Auto-remove duplicated, allowed themes during reload
This commit is contained in:
parent
7e82f8dc2e
commit
d39a6ba444
1 changed files with 2 additions and 0 deletions
|
@ -25,10 +25,12 @@ class Index extends BaseAdminModule
|
|||
|
||||
switch ($_GET['action']) {
|
||||
case 'reload':
|
||||
$allowed_themes = array_unique($allowed_themes);
|
||||
foreach ($allowed_themes as $theme) {
|
||||
Theme::uninstall($theme);
|
||||
Theme::install($theme);
|
||||
}
|
||||
Theme::setAllowedList($allowed_themes);
|
||||
|
||||
info('Themes reloaded');
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue