From: Philipp Holzer Date: Sat, 17 Aug 2019 18:00:11 +0000 (+0200) Subject: Auto-remove duplicated, allowed themes during reload X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d39a6ba444005aea44ff41fa65f98555cb0acd17;p=friendica.git Auto-remove duplicated, allowed themes during reload --- diff --git a/src/Module/Admin/Themes/Index.php b/src/Module/Admin/Themes/Index.php index 69c6419bc4..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); Theme::install($theme); } + Theme::setAllowedList($allowed_themes); info('Themes reloaded'); break;