From 6cc9511243c83e20b559ab2661d520e2357742d4 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 5 Mar 2025 18:53:50 +0900 Subject: [PATCH] Simplify check for mbstring #2507 --- common/autoload.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/autoload.php b/common/autoload.php index 2c39b1707..d1af61d90 100644 --- a/common/autoload.php +++ b/common/autoload.php @@ -32,12 +32,9 @@ date_default_timezone_set(@date_default_timezone_get()); * Set the default character encoding. */ ini_set('default_charset', 'UTF-8'); -if (function_exists('mb_internal_encoding')) +if (function_exists('mb_internal_encoding') && function_exists('mb_regex_encoding')) { mb_internal_encoding('UTF-8'); -} -if (function_exists('mb_regex_encoding')) -{ mb_regex_encoding('UTF-8'); }