Fixed errors

This commit is contained in:
Rooty 2021-09-23 03:24:01 +02:00
parent 6e052305d7
commit 9ba0d58ba3

View File

@ -29,7 +29,7 @@
/**
*
*/
function check_lang($filetest="")
function check_lang($filelang="")
{
global $QWARE_ROOT_PATH, $_SERVER;
@ -100,9 +100,11 @@ function check_lang($filetest="")
{
if (preg_match('#' . $match . '#i', trim($accept_lang_array[$i])))
{
if (file_exists(($QWARE_ROOT_PATH . 'data/message/' . $lang."/".$filetest)))
// if (file_exists(($QWARE_ROOT_PATH . 'data/message/' . $lang."/".$filetest)))
if (file_exists(($QWARE_ROOT_PATH . "data/message/fr_FR-utf8/".$filelang)))
{
return $lang."/";
// return $lang."/";
return "fr_FR-utf8/";
}
}
}