mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-23479 missed check for intro files.
This commit is contained in:
parent
86edee3543
commit
6751fcbd80
3 changed files with 13 additions and 0 deletions
|
@ -53,4 +53,9 @@ class restore_label_activity_structure_step extends restore_activity_structure_s
|
|||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
protected function after_execute() {
|
||||
// Add label related files, no need to match by itemname (just internally handled context)
|
||||
$this->add_related_files('mod_label', 'intro', null);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -53,4 +53,8 @@ class restore_page_activity_structure_step extends restore_activity_structure_st
|
|||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
protected function after_execute() {
|
||||
// Add page related files, no need to match by itemname (just internally handled context)
|
||||
$this->add_related_files('mod_page', 'intro', null);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,4 +53,8 @@ class restore_url_activity_structure_step extends restore_activity_structure_ste
|
|||
$this->apply_activity_instance($newitemid);
|
||||
}
|
||||
|
||||
protected function after_execute() {
|
||||
// Add url related files, no need to match by itemname (just internally handled context)
|
||||
$this->add_related_files('mod_url', 'intro', null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue