diff --git a/classes/template.php b/classes/template.php index a0a3cea..222703a 100644 --- a/classes/template.php +++ b/classes/template.php @@ -79,7 +79,7 @@ class template { $savedata = new \stdClass(); $savedata->id = $this->id; $savedata->name = $data->name; - $savedata->html = $data->html; + $savedata->html = $data->html || $this->html; $savedata->timemodified = time(); $DB->update_record('htmlcert_templates', $savedata); diff --git a/lang/en/htmlcert.php b/lang/en/htmlcert.php index a726c25..3dc3006 100644 --- a/lang/en/htmlcert.php +++ b/lang/en/htmlcert.php @@ -108,7 +108,7 @@ $string['gethtmlcert'] = 'View certificate'; $string['gradeoutcome'] = 'Outcome'; $string['height'] = 'Height'; $string['height_help'] = 'This is the height of the certificate PDF in mm. For reference an A4 piece of paper is 297mm high and a letter is 279mm high.'; -$string['html'] = 'HTML'; +$string['html'] = 'Replace HTML'; $string['invalidcode'] = 'Invalid code supplied.'; $string['invalidcolour'] = 'Invalid colour chosen, please enter a valid HTML colour name, or a six-digit, or three-digit hexadecimal colour.'; $string['invalidelementwidth'] = 'Please enter a positive number.';