Fix image update in edit, QR code generation and translations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user