sforkowany z mirror/friendica
Auto-remove duplicated, allowed themes during reload
rodzic
7e82f8dc2e
commit
d39a6ba444
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue