Fixed errors
This commit is contained in:
parent
6e052305d7
commit
9ba0d58ba3
@ -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/";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user