diff --git a/backup/moodle2/backup_etherpadlite_stepslib.php b/backup/moodle2/backup_etherpadlite_stepslib.php index 8893cc8..626b29e 100644 --- a/backup/moodle2/backup_etherpadlite_stepslib.php +++ b/backup/moodle2/backup_etherpadlite_stepslib.php @@ -88,8 +88,8 @@ protected function define_structure() { // The HTML content of the main pad. $html = $client->get_html($padid); $text = $client->get_text($padid); - $data->html = $html->html; - $data->text = $text->text; + $data->html = $html; + $data->text = $text; $content->set_source_array(array($data)); } } diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php new file mode 100644 index 0000000..4d725d4 --- /dev/null +++ b/classes/privacy/provider.php @@ -0,0 +1,39 @@ +. + +/** + * Privacy Subsystem implementation for mod_etherpadlite. + * + * @package mod_etherpadlite + * @copyright Catalyst IT Canada LTD + * @author Karl Michael Reyes + * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace mod_etherpadlite\privacy; + +class provider implements \core_privacy\local\metadata\null_provider { + + /** + * Get the language string identifier with the component's language + * file to explain why this plugin stores no data. + * + * @return string + */ + public static function get_reason() : string { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/lang/en/etherpadlite.php b/lang/en/etherpadlite.php index 3f4b86f..0fb6271 100644 --- a/lang/en/etherpadlite.php +++ b/lang/en/etherpadlite.php @@ -73,6 +73,7 @@ $string['padnamedesc'] = 'A general padname can be helpful, if you want to find all pads from this Moodle installation on your etherpadlite server. Pad groups are generated autmatically.'; $string['pluginadministration'] = 'Etherpad Lite administration'; $string['pluginname'] = 'Etherpad Lite'; +$string['privacy:metadata'] = 'Ethepadlite plugin does not store any personal data.'; $string['resetting_data'] = 'Reset Etherpad Lite data'; $string['responsiveiframe'] = 'Responsive iFrame'; $string['responsiveiframedesc'] = 'With this set, the iFrame for the Etherpad Lite editor will fit nicely into a responsive Moodle theme and will scale its width according to the browser window. If not, the Etherpad Lite editor will have a fixed width which basically adapts to the width of the browser window at page load time, but will not scale when the window is resized.';