Switch to recommended 'default_charset' to fix 'gettext' error.
'mbstring.internal-encoding' was deprecated in 5.6. https://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.internal-encoding https://www.php.net/manual/en/ini.core.php#ini.default-charset
This commit is contained in:
parent
6f31372b37
commit
75536b4790
|
@ -167,7 +167,7 @@ function _check_locale_and_function($function=false) {
|
||||||
function _get_codeset($domain=null) {
|
function _get_codeset($domain=null) {
|
||||||
global $text_domains, $default_domain, $LC_CATEGORIES;
|
global $text_domains, $default_domain, $LC_CATEGORIES;
|
||||||
if (!isset($domain)) $domain = $default_domain;
|
if (!isset($domain)) $domain = $default_domain;
|
||||||
return (isset($text_domains[$domain]->codeset))? $text_domains[$domain]->codeset : ini_get('mbstring.internal_encoding');
|
return (isset($text_domains[$domain]->codeset))? $text_domains[$domain]->codeset : ini_get('default_charset');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue