File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 38
38
* @copyright 2013 Mark Nelson <[email protected] >
39
39
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
40
40
* @param string $message The error message to display.
41
- * @package mod_customcert
42
41
*/
43
42
function display_error_page ($ message ) {
44
43
global $ OUTPUT ;
@@ -71,7 +70,8 @@ function display_error_page($message) {
71
70
$ issue = $ DB ->get_record ('customcert_issues ' , ['code ' => $ certcode ], '* ' );
72
71
73
72
if (!$ issue ) {
74
- display_error_page ('The certificate with the provided code could not be found. Please verify the certificate code and try again. ' );
73
+ display_error_page ('Certificate with this code not found. '
74
+ . 'Please check the code and try again. ' );
75
75
}
76
76
77
77
// Fetch the certificate associated with the retrieved issue.
@@ -99,7 +99,8 @@ function display_error_page($message) {
99
99
$ template ->generate_pdf (false , $ issue ->userid );
100
100
} catch (Exception $ e ) {
101
101
// Catch any errors that may occur while generating the certificate PDF.
102
- display_error_page ('There was an error generating the certificate PDF. Please try again later or contact support if the problem persists. ' );
102
+ display_error_page ('Error generating certificate PDF. '
103
+ . 'Try again later or contact support. ' );
103
104
}
104
105
105
106
// Prevent further execution after rendering the certificate.
You can’t perform that action at this time.
0 commit comments