Merge pull request #7530 from nupplaphil/bug/theme_reload
Fix Admin Theme reload
This commit is contained in:
commit
fc2825b280
1 changed files with 4 additions and 2 deletions
|
@ -25,10 +25,12 @@ class Index extends BaseAdminModule
|
||||||
|
|
||||||
switch ($_GET['action']) {
|
switch ($_GET['action']) {
|
||||||
case 'reload':
|
case 'reload':
|
||||||
|
$allowed_themes = array_unique($allowed_themes);
|
||||||
foreach ($allowed_themes as $theme) {
|
foreach ($allowed_themes as $theme) {
|
||||||
Theme::uninstall($theme['name']);
|
Theme::uninstall($theme);
|
||||||
Theme::install($theme['name']);
|
Theme::install($theme);
|
||||||
}
|
}
|
||||||
|
Theme::setAllowedList($allowed_themes);
|
||||||
|
|
||||||
info('Themes reloaded');
|
info('Themes reloaded');
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue