Updated QR code precision after a few tests with a mobile phone - if smaller or lesser error correction, the phone doesn't catch it so well

skala
ywarnier 14 years ago
parent e1e540a5b2
commit 187d221e76
  1. 4
      main/inc/lib/certificate.lib.php

@ -224,8 +224,8 @@ class Certificate extends Model {
//Make sure HTML certificate is generated
if (!empty($text) && !empty($path)) {
require_once api_get_path(LIBRARY_PATH).'phpqrcode/qrlib.php';
//L low, M - Medium, L large
$return = QRcode::png($text, $path, 'L', 1, 2);
//L low, M - Medium, L large error correction
$return = QRcode::png($text, $path, 'M', 2, 2);
}
}

Loading…
Cancel
Save