Fix image update in edit, QR code generation and translations

This commit is contained in:
2025-11-11 18:21:40 +01:00
parent c1957baab9
commit bfea1f4dfe
6 changed files with 16 additions and 7 deletions

View File

@@ -182,6 +182,9 @@ class ItemController
]);
$qrCode = new QRCode($options);
$svg = $qrCode->render($idCode);
if (strpos($svg, 'data:image/svg+xml;base64,') === 0) {
$svg = base64_decode(substr($svg, 26)); // 26 is length of 'data:image/svg+xml;base64,'
}
file_put_contents($qrDir . $idCode . '.svg', $svg);
}