Skip to content
Snippets Groups Projects
Commit 601f94a4 authored by hendrik.donath's avatar hendrik.donath Committed by Friederike Schwager
Browse files

implement userinfo backup functionality

parent 06df614f
No related branches found
No related tags found
No related merge requests found
......@@ -43,11 +43,12 @@ class restore_pdfannotator_activity_structure_step extends restore_activity_stru
$paths = array();
$userinfo = $this->get_setting_value('userinfo'); // Is 0 //TODO is not used.
$userinfo = $this->get_setting_value('userinfo');
$paths[] = new restore_path_element('pdfannotator',
'/activity/pdfannotator');
if($userinfo) {
$paths[] = new restore_path_element('pdfannotator_annotation',
'/activity/pdfannotator/annotations/annotation');
......@@ -60,7 +61,7 @@ class restore_pdfannotator_activity_structure_step extends restore_activity_stru
'/activity/pdfannotator/annotations/annotation/comments/comment/votes/vote');
$paths[] = new restore_path_element('pdfannotator_report',
'/activity/pdfannotator/annotations/annotation/comments/comment/reports/report');
}
// Return the paths wrapped into standard activity structure.
return $this->prepare_activity_structure($paths);
}
......
......@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'mod_pdfannotator';
$plugin->version = 2021112900;
$plugin->release = 'PDF Annotator v1.4 release 10';
$plugin->version = 2021113000;
$plugin->release = 'PDF Annotator v1.4 release 11';
$plugin->requires = 2021051700;
$plugin->maturity = MATURITY_STABLE;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment