From 75536b4790a676bf9ffffc115d2ec5fbf9a090b4 Mon Sep 17 00:00:00 2001 From: wn Date: Sat, 12 Dec 2020 09:42:07 -0600 Subject: [PATCH] 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 --- lib/gettext/gettext.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gettext/gettext.inc.php b/lib/gettext/gettext.inc.php index ed5be6bbd..ef36924c7 100644 --- a/lib/gettext/gettext.inc.php +++ b/lib/gettext/gettext.inc.php @@ -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'); } /**