]> git.mxchange.org Git - friendica.git/commitdiff
Themese are now saved just once
authornupplaPhil <admin@philipp.info>
Sun, 1 Dec 2019 07:43:50 +0000 (08:43 +0100)
committernupplaPhil <admin@philipp.info>
Sun, 1 Dec 2019 07:43:50 +0000 (08:43 +0100)
src/Core/Theme.php

index 7a59f11325cd6ef6730e9ffdd41335050549520d..4f870687ce0d08e577a3459589ce07ac139576da 100644 (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)));
        }
 
        /**