From acebf40bfa535bc46fc18bcd03b9948facbbd7e0 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Thu, 7 May 2026 12:35:17 +0300 Subject: [PATCH] Moved the "mb_ucfirst" function to \includes\functions.php (functions.php) --- web/skins/classic/includes/functions.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index 2bb6c09c13..6f91b0f41a 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -1867,17 +1867,6 @@ class ZM_Menu { } } -if (!function_exists('mb_ucfirst')) { // Available in PHP >= 8.4 - function mb_ucfirst($str, $encoding='UTF-8') { - if (extension_loaded('mbstring')) { - $result = mb_strtoupper(mb_substr($str, 0, 1, $encoding)) . mb_substr($str, 1, null, $encoding); - } else { - $result = (ucfirst($str)); - } - return $result; - } -} - // $typeMenu we are not using it yet. From now on we will specify either 'leftMenu' or 'topMenu' // $menuItems we are not using it yet. These are main menu items with the ability to be customized by the user. $zmMenu = new ZM_Menu($typeMenu = '', $menuItems = [