diff --git a/backup/moodle2/backup_expcontent_stepslib.php b/backup/moodle2/backup_expcontent_stepslib.php index af55474..4a6ca2e 100644 --- a/backup/moodle2/backup_expcontent_stepslib.php +++ b/backup/moodle2/backup_expcontent_stepslib.php @@ -42,7 +42,7 @@ class backup_expcontent_activity_structure_step extends backup_activity_structur // The instance. $expcontent = new backup_nested_element('expcontent', array('id'), array( - 'name', 'contentid', 'intro', 'introformat')); + 'name', 'contentid', 'intro', 'introformat', 'timecreated', 'timemodified')); // Define sources. $expcontent->set_source_table('expcontent', array('id' => backup::VAR_ACTIVITYID)); diff --git a/backup/moodle2/restore_expcontent_stepslib.php b/backup/moodle2/restore_expcontent_stepslib.php index 7c844cd..5fe6dbc 100644 --- a/backup/moodle2/restore_expcontent_stepslib.php +++ b/backup/moodle2/restore_expcontent_stepslib.php @@ -42,7 +42,7 @@ class restore_expcontent_activity_structure_step extends restore_activity_struct // The array used to store the path to the items we want to restore. $paths = array(); - // The htmlcert instance. + // The expcontent instance. $paths[] = new restore_path_element('expcontent', '/activity/expcontent'); // Return the paths wrapped into standard activity structure. @@ -50,9 +50,9 @@ class restore_expcontent_activity_structure_step extends restore_activity_struct } /** - * Handles restoring the htmlcert activity. + * Handles restoring the expcontent activity. * - * @param stdClass $data the htmlcert data + * @param stdClass $data the expcontent data */ protected function process_expcontent($data) { global $DB; @@ -63,7 +63,7 @@ class restore_expcontent_activity_structure_step extends restore_activity_struct $data->timemodified = $this->apply_date_offset($data->timemodified); $data->usermodified = $USER->id; - // Insert the htmlcert record. + // Insert the expcontent record. $newitemid = $DB->insert_record('expcontent', $data); // Immediately after inserting record call this.