Skip to content

Commit c293119

Browse files
committed
removed some errors in the code
1 parent 9a08c0d commit c293119

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

classes/certificate.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ public static function issue_certificate($certificateid, $userid) {
556556
* Generates an unused code of random letters and numbers.
557557
*
558558
* @return string
559-
*/
559+
*/
560560
public static function generate_code(): string {
561561
global $DB;
562562

@@ -572,7 +572,6 @@ public static function generate_code(): string {
572572
return self::generate_code_digits_with_hyphens();
573573
}
574574

575-
// Upper/lower/digits random string.
576575
/**
577576
* Generate a random code of the format XXXXXXXXXX, where each X is a character from the set [A-Za-z0-9].
578577
* Does not check that it is unused.

element/qrcode/classes/element.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ public function render($pdf, $preview, $user) {
158158
$context = \context::instance_by_id($issue->contextid);
159159

160160
$urlparams = [
161-
'code' => $code,
162-
'qrcode' => 1,
161+
'certId' => $code,
163162
];
164163

165164
// We only add the 'contextid' to the link if the site setting for verifying all certificates is off,

0 commit comments

Comments
 (0)