Internal: Fix ErrorCorrectionLevel::MEDIUM constant usage

pull/5989/head
Angel Fernando Quiroz Campos 9 months ago
parent e117d3f69f
commit d617e04be7
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 2
      main/inc/lib/certificate.lib.php

@ -518,7 +518,7 @@ class Certificate extends Model
$qrCode->setSize(120);
$qrCode->setMargin(5);
$qrCode->setWriterByName('png');
$qrCode->setErrorCorrectionLevel(ErrorCorrectionLevel::MEDIUM());
$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