From 187d221e7645981203feed087ee64162378ba22c Mon Sep 17 00:00:00 2001 From: ywarnier Date: Wed, 17 Aug 2011 13:32:44 -0500 Subject: [PATCH] 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 --- main/inc/lib/certificate.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/inc/lib/certificate.lib.php b/main/inc/lib/certificate.lib.php index b3d5b2afea..52461505b2 100644 --- a/main/inc/lib/certificate.lib.php +++ b/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); } }