Workaround for Chrome hanging issue

This commit is contained in:
Kumi 2021-11-24 13:30:19 +01:00
parent 7b03eceec9
commit 0a4186a981
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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.';