Another correction for language

Another correction for language
This commit is contained in:
novgorodschi catalin
2026-06-04 14:14:17 +03:00
parent e2dfefa0b7
commit 2b6277af06
+1 -1
View File
@@ -223,7 +223,7 @@ class Profile {
// Language change
if (!empty($post['sprache'])) {
// whitelist pune aici limbile pe care le ai în /lang/
$allowed = ['en','ro','de','it','fr','es'];
$allowed = ['en','fr','it','ro','zh'];
$lang = strtolower(trim($post['sprache']));
if (in_array($lang, $allowed, true)) {