Add close button to print QR page; fix QR generation to use file_put_contents
This commit is contained in:
@@ -175,7 +175,8 @@ class ItemController
|
||||
'eccLevel' => QRCode::ECC_L,
|
||||
]);
|
||||
$qrCode = new QRCode($options);
|
||||
$qrCode->render($idCode, $qrDir . $idCode . '.svg');
|
||||
$svg = $qrCode->render($idCode);
|
||||
file_put_contents($qrDir . $idCode . '.svg', $svg);
|
||||
}
|
||||
|
||||
public static function printQR($id) {
|
||||
|
||||
Reference in New Issue
Block a user