mirror of
https://github.com/moodle/moodle.git
synced 2025-05-06 08:15:51 +02:00
MDL-21432 backup - fix minor problem with anon backups and course format
This commit is contained in:
parent
cd17f05ba1
commit
c44d4aeeee
@ -871,7 +871,7 @@ class backup_users_structure_step extends backup_structure_step {
|
|||||||
'yahoo', 'aim', 'msn', 'phone1',
|
'yahoo', 'aim', 'msn', 'phone1',
|
||||||
'phone2', 'institution', 'department', 'address',
|
'phone2', 'institution', 'department', 'address',
|
||||||
'city', 'country', 'lastip', 'picture',
|
'city', 'country', 'lastip', 'picture',
|
||||||
'url', 'description', 'description_format', 'imagealt', 'auth');
|
'url', 'description', 'descriptionformat', 'imagealt', 'auth');
|
||||||
|
|
||||||
// Add anonymized fields to $userfields with custom final element
|
// Add anonymized fields to $userfields with custom final element
|
||||||
foreach ($anonfields as $field) {
|
foreach ($anonfields as $field) {
|
||||||
|
@ -146,6 +146,10 @@ class backup_anonymizer_helper {
|
|||||||
return ''; // No user description
|
return ''; // No user description
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function process_user_descriptionformat($value) {
|
||||||
|
return 0; // Format moodle
|
||||||
|
}
|
||||||
|
|
||||||
public static function process_user_imagealt($value) {
|
public static function process_user_imagealt($value) {
|
||||||
return ''; // No user imagealt
|
return ''; // No user imagealt
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user