From 7ebd5e6b158a0d2291e24cd11714a574d939958b Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Sun, 1 Dec 2019 08:43:50 +0100 Subject: [PATCH] Themese are now saved just once --- src/Core/Theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))); } /** -- 2.39.5