From d070fcdc051374d52c56706af13ec927157fec67 Mon Sep 17 00:00:00 2001 From: "Jason.Platts" Date: Wed, 29 Jun 2022 15:46:09 +0100 Subject: [PATCH] Fix php8 deprecated Required parameter follows optional parameter --- locallib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locallib.php b/locallib.php index 2737bda0..8bcfb3df 100644 --- a/locallib.php +++ b/locallib.php @@ -389,7 +389,7 @@ function certificate_get_issue($course, $user, $certificate, $cm) { * @param int $perpage total per page * @return stdClass the users */ -function certificate_get_issues($certificateid, $sort="ci.timecreated ASC", $groupmode, $cm, $page = 0, $perpage = 0) { +function certificate_get_issues($certificateid, $sort, $groupmode, $cm, $page = 0, $perpage = 0) { global $DB, $USER; $context = context_module::instance($cm->id); @@ -1047,7 +1047,7 @@ function certificate_get_code($certificate, $certrecord) { * @param string $text the text to print * @param int $width horizontal dimension of text block */ -function certificate_print_text($pdf, $x, $y, $align, $font='freeserif', $style, $size = 10, $text, $width = 0) { +function certificate_print_text($pdf, $x, $y, $align, $font, $style, $size, $text, $width = 0) { $pdf->setFont($font, $style, $size); $pdf->SetXY($x, $y); $pdf->writeHTMLCell($width, 0, '', '', $text, 0, 0, 0, true, $align);