fix: replace mb_strlen/mb_substr in student-preview.php (mbstring unavailable)

This commit is contained in:
Pontoporeia
2026-04-24 13:38:14 +02:00
parent 9b4cb52617
commit decb9e2907
4 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
## Fixes
- [x] Replace `mb_strtolower` with `strtolower` in admin/index.php (mbstring not available in php8.4-fpm)
- [x] Replace `mb_strlen`/`mb_substr` with `strlen`/`substr` in student-preview.php (same root cause)
## Features
- [x] Student name popover preview in /repertoire (zero per-hover requests)

Binary file not shown.

Binary file not shown.

View File

@@ -10,8 +10,8 @@
foreach ($theses as $t):
$synopsis = $t['synopsis'] ?? '';
// Truncate synopsis to ~160 chars
if (mb_strlen($synopsis) > 160) {
$synopsis = mb_substr($synopsis, 0, 157) . '…';
if (strlen($synopsis) > 160) {
$synopsis = substr($synopsis, 0, 157) . '…';
}
$meta = array_filter([
$t['year'] ?? null,