Merge pull request #7885 from nupplaphil/bug/7881_allowed_themes

Themes are now saved just once
This commit is contained in:
Hypolite Petovan
2019-12-01 08:12:20 -05:00
committed by GitHub

View File

@@ -31,12 +31,12 @@ class Theme
}
}
return $allowed_themes;
return array_unique($allowed_themes);
}
public static function setAllowedList(array $allowed_themes)
{
Config::set('system', 'allowed_themes', implode(',', $allowed_themes));
Config::set('system', 'allowed_themes', implode(',', array_unique($allowed_themes)));
}
/**