From c44d4aeeeec63d2e352f84110270198135ccc68c Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Sun, 18 Jul 2010 10:59:43 +0000 Subject: [PATCH] MDL-21432 backup - fix minor problem with anon backups and course format --- backup/moodle2/backup_stepslib.php | 2 +- backup/util/helper/backup_anonymizer_helper.class.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 }