mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-04 01:17:17 +00:00
Another correction for language
Another correction for language
This commit is contained in:
@@ -223,7 +223,7 @@ class Profile {
|
|||||||
// Language change
|
// Language change
|
||||||
if (!empty($post['sprache'])) {
|
if (!empty($post['sprache'])) {
|
||||||
// whitelist – pune aici limbile pe care le ai în /lang/
|
// 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']));
|
$lang = strtolower(trim($post['sprache']));
|
||||||
|
|
||||||
if (in_array($lang, $allowed, true)) {
|
if (in_array($lang, $allowed, true)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user