1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Multibyte utf8 method tests and fixes.

This commit is contained in:
Cameron
2021-01-15 09:03:07 -08:00
parent 8cfb8d80cc
commit 13517e83a8
5 changed files with 178 additions and 192 deletions

View File

@@ -380,6 +380,9 @@ class language{
{
trigger_error('<b>'.__METHOD__.' is deprecated.</b> Use $tp->lanVars() instead.', E_USER_DEPRECATED); // NO LAN
$search = array();
$replace = array();
foreach($array as $k=>$v)
{
$search[] = "[".$k."]";
@@ -656,6 +659,12 @@ class language{
$this->e_language = $user_language;
$this->setDefs();
if(e_LAN !== 'en')
{
e107::getParser()->setMultibyte(true);
}
return;
}