Themese are now saved just once

pull/7885/head
nupplaPhil 2019-12-01 08:43:50 +01:00
rodzic 2f2480d88d
commit 7ebd5e6b15
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: D8365C3D36B77D90
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -31,12 +31,12 @@ class Theme
} }
} }
return $allowed_themes; return array_unique($allowed_themes);
} }
public static function setAllowedList(array $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)));
} }
/** /**