From: nupplaPhil Date: Sun, 1 Dec 2019 07:43:50 +0000 (+0100) Subject: Themese are now saved just once X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7ebd5e6b158a0d2291e24cd11714a574d939958b;p=friendica.git Themese are now saved just once --- diff --git a/src/Core/Theme.php b/src/Core/Theme.php index 7a59f11325..4f870687ce 100644 --- a/src/Core/Theme.php +++ b/src/Core/Theme.php @@ -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))); } /**