diff --git a/backup/moodle2/backup_stepslib.php b/backup/moodle2/backup_stepslib.php index dd6cda3ab92..9179390612c 100644 --- a/backup/moodle2/backup_stepslib.php +++ b/backup/moodle2/backup_stepslib.php @@ -871,7 +871,7 @@ class backup_users_structure_step extends backup_structure_step { 'yahoo', 'aim', 'msn', 'phone1', 'phone2', 'institution', 'department', 'address', 'city', 'country', 'lastip', 'picture', - 'url', 'description', 'description_format', 'imagealt', 'auth'); + 'url', 'description', 'descriptionformat', 'imagealt', 'auth'); // Add anonymized fields to $userfields with custom final element foreach ($anonfields as $field) { diff --git a/backup/util/helper/backup_anonymizer_helper.class.php b/backup/util/helper/backup_anonymizer_helper.class.php index 9c91ae46078..df400610d3b 100644 --- a/backup/util/helper/backup_anonymizer_helper.class.php +++ b/backup/util/helper/backup_anonymizer_helper.class.php @@ -146,6 +146,10 @@ class backup_anonymizer_helper { return ''; // No user description } + public static function process_user_descriptionformat($value) { + return 0; // Format moodle + } + public static function process_user_imagealt($value) { return ''; // No user imagealt }