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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user