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
commit 01b81f7bba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)));
}
/**