mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Another correction for language
Another correction for language
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user