Gradebook: Set new QR code generator's error correction level to MEDIUM to match previous QR codes - refs #3061

pull/3446/head
Yannick Warnier 5 years ago
parent 35bc54dcc3
commit ca2c3db772
  1. 2
      main/inc/lib/certificate.lib.php

@ -517,7 +517,7 @@ class Certificate extends Model
$qrCode->setSize(120);
$qrCode->setMargin(5);
$qrCode->setWriterByName('png');
$qrCode->setErrorCorrectionLevel(ErrorCorrectionLevel::HIGH());
$qrCode->setErrorCorrectionLevel(ErrorCorrectionLevel::MEDIUM());
$qrCode->setForegroundColor(['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0]);
$qrCode->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0]);
$qrCode->setValidateResult(false);

Loading…
Cancel
Save