|
Michael Blake made changes - 21/Aug/06 03:56 PM
Martin Dougiamas made changes - 23/Aug/06 11:48 PM
Anthony Borrow made changes - 14/Oct/07 11:08 AM
Iñaki Arenaza made changes - 08/Dec/07 09:28 PM
Don't mind. I'm not doing much Moodle work at the moment so I'm not really partisan...
Ok, I'm closing it as fixed then.
Saludos. Iñaki.
Iñaki Arenaza made changes - 02/Jun/08 04:15 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MDL-11752work, we decoupled the uploading of the profile images, and the processing of those image files. As a result, we can now get the profile images from anywhere (from an external URL, an LDAP directory, etc.), put them in a temporary file in moodledata and use the following code to assign the picture to the user. $id is the user id, and $originalfile is the path to the (temporary) profile image file$destination = create_profile_image_destination($id, 'user');
if ($destination === false) { // do whatever you need to handle the error. }
$success = process_profile_image($originalfile, $destination);
So I'd say we can close this bug as fixed. Dan?
Saludos. Iñaki.