diff --git a/chat.php b/chat.php index a06c5b1..1c9b72d 100644 --- a/chat.php +++ b/chat.php @@ -4897,7 +4897,9 @@ function load_lang(): void } } } - putenv('LC_ALL='.$locale); + if(function_exists('putenv')) { + putenv('LC_ALL='.$locale); + } setlocale(LC_ALL, $locale); bindtextdomain('le-chat-php', __DIR__.'/locale'); bind_textdomain_codeset('le-chat-php', 'UTF-8');