mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-45301 assign: Add font options for EditPDF
This commit is contained in:
parent
8503f2cfd8
commit
9e725bc168
19 changed files with 160 additions and 9 deletions
|
@ -459,7 +459,7 @@ class backup_course_structure_step extends backup_structure_step {
|
|||
'timecreated', 'timemodified',
|
||||
'requested',
|
||||
'showactivitydates',
|
||||
'showcompletionconditions',
|
||||
'showcompletionconditions', 'pdfexportfont',
|
||||
'enablecompletion', 'completionstartonenrol', 'completionnotify'));
|
||||
|
||||
$category = new backup_nested_element('category', array('id'), array(
|
||||
|
|
|
@ -1933,6 +1933,9 @@ class restore_course_structure_step extends restore_structure_step {
|
|||
$showactivitydatesdefault = ($courseconfig->showactivitydates ?? null);
|
||||
$data->showactivitydates = $data->showactivitydates ?? $showactivitydatesdefault;
|
||||
|
||||
$pdffontdefault = ($courseconfig->pdfexportfont ?? null);
|
||||
$data->pdfexportfont = $data->pdfexportfont ?? $pdffontdefault;
|
||||
|
||||
$languages = get_string_manager()->get_list_of_translations(); // Get languages for quick search
|
||||
if (isset($data->lang) && !array_key_exists($data->lang, $languages)) {
|
||||
$data->lang = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue