Skip to content

Commit 792c139

Browse files
committed
Fixed errors
1 parent abd5b11 commit 792c139

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

view_user_cert.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
* This function helps standardize error handling by rendering the page
3333
* properly and showing the error message in an alert box.
3434
*
35+
* Code fragment to define the version of the customcert module
36+
*
37+
* @package mod_customcert
38+
* @copyright 2013 Mark Nelson <[email protected]>
39+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3540
* @param string $message The error message to display.
3641
* @package mod_customcert
3742
*/
@@ -60,7 +65,8 @@ function display_error_page($message) {
6065
display_error_page('The verification token is invalid for this certificate. Please check the URL and try again.');
6166
}
6267

63-
// Retrieve the certificate issue entry using the provided certificate code.
68+
// Retrieve the certificate issue entry
69+
// using the provided certificate code.
6470
// This helps fetch the associated user ID to verify ownership.
6571
$issue = $DB->get_record('customcert_issues', ['code' => $certcode], '*');
6672

@@ -87,7 +93,8 @@ function display_error_page($message) {
8793
$template = new \mod_customcert\template($template);
8894

8995
// Generate and output the certificate PDF.
90-
// 'false' indicates that the PDF is displayed inline instead of being force-downloaded.
96+
// 'false' indicates that the PDF is displayed inline,
97+
// instead of being force-downloaded.
9198
// The second parameter ensures the certificate is generated for the correct user.
9299
$template->generate_pdf(false, $issue->userid);
93100
} catch (Exception $e) {

0 commit comments

Comments
 (0)