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

@@ -1,5 +1,8 @@
# Posterg TODO # Posterg TODO
## Fixes
- [x] Replace `mb_strtolower` with `strtolower` in admin/index.php (mbstring not available in php8.4-fpm)
## Features ## Features
- [x] Student name popover preview in /repertoire (zero per-hover requests) - [x] Student name popover preview in /repertoire (zero per-hover requests)
- [x] `Database::getThesesByAuthorName()` query - [x] `Database::getThesesByAuthorName()` query

View File

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