Merge pull request #7530 from nupplaphil/bug/theme_reload

Fix Admin Theme reload
This commit is contained in:
Hypolite Petovan
2019-08-17 14:41:20 -04:00
committed by GitHub

View File

@@ -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;