diff --git a/src/Module/Admin/Themes/Index.php b/src/Module/Admin/Themes/Index.php index 71a91919bd..d29b4c33ca 100644 --- a/src/Module/Admin/Themes/Index.php +++ b/src/Module/Admin/Themes/Index.php @@ -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['name']); - Theme::install($theme['name']); + Theme::uninstall($theme); + Theme::install($theme); } + Theme::setAllowedList($allowed_themes); info('Themes reloaded'); break;