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:
wn 2020-12-12 09:42:07 -06:00
parent 6f31372b37
commit 75536b4790
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ function _check_locale_and_function($function=false) {
function _get_codeset($domain=null) {
global $text_domains, $default_domain, $LC_CATEGORIES;
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');
}
/**