Some hosting providers may disable putenv for security reasons, check before using
This commit is contained in:
2
chat.php
2
chat.php
@ -4897,7 +4897,9 @@ function load_lang(): void
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(function_exists('putenv')) {
|
||||||
putenv('LC_ALL='.$locale);
|
putenv('LC_ALL='.$locale);
|
||||||
|
}
|
||||||
setlocale(LC_ALL, $locale);
|
setlocale(LC_ALL, $locale);
|
||||||
bindtextdomain('le-chat-php', __DIR__.'/locale');
|
bindtextdomain('le-chat-php', __DIR__.'/locale');
|
||||||
bind_textdomain_codeset('le-chat-php', 'UTF-8');
|
bind_textdomain_codeset('le-chat-php', 'UTF-8');
|
||||||
|
Reference in New Issue
Block a user