fix: replace mb_strtolower with strtolower in admin import (mbstring unavailable in php8.4-fpm)

This commit is contained in:
Pontoporeia
2026-04-24 13:32:38 +02:00
parent 769beae4ee
commit 9b4cb52617
2 changed files with 5 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['csv_file'])) {
}
// 2. Try alias map (lowercase key)
$key = mb_strtolower($raw, 'UTF-8');
$key = strtolower($raw);
if (isset($orientationAliases[$key])) {
$raw = $orientationAliases[$key];
}
@@ -108,7 +108,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['csv_file'])) {
if ($raw === '') return null;
// 1. Try alias map (lowercase key)
$key = mb_strtolower($raw, 'UTF-8');
$key = strtolower($raw);
if (isset($apAliases[$key])) {
$raw = $apAliases[$key];
}