MDL-21432 backup - fix minor problem with anon backups and course format
authorEloy Lafuente <stronk7@moodle.org>
Sun, 18 Jul 2010 10:59:43 +0000 (10:59 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Sun, 18 Jul 2010 10:59:43 +0000 (10:59 +0000)
backup/moodle2/backup_stepslib.php
backup/util/helper/backup_anonymizer_helper.class.php

index dd6cda3..9179390 100644 (file)
@@ -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) {
index 9c91ae4..df40061 100644 (file)
@@ -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
     }