Small bug fixes for upload class.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/[email protected]/moodle--eduforge--1.3.3 Index of arch patches in this commit: [email protected]/moodle--eduforge--1.3.3--patch-75 2004-09-17 03:19:50 GMT Penny Leach <[email protected]> bug fix for upload class related to optional file uploads (like in user/edit.php) [email protected]/moodle--eduforge--1.3.3--patch-76 2004-09-17 03:23:17 GMT Penny Leach <[email protected]> bug fix for upload class related to optional file uploads (like in user/edit.php) [email protected]/moodle--eduforge--1.3.3--patch-77 2004-09-17 03:42:10 GMT Penny Leach <[email protected]> more fixes for upload class Full logs: Revision: moodle--eduforge--1.3.3--patch-75 Archive: [email protected] Creator: Penny Leach <[email protected]> Date: Fri Sep 17 15:19:50 NZST 2004 Standard-date: 2004-09-17 03:19:50 GMT Modified-files: lib/uploadlib.php user/edit.php New-patches: [email protected]/moodle--eduforge--1.3.3--patch-75 Summary: bug fix for upload class related to optional file uploads (like in user/edit.php) Keywords: Revision: moodle--eduforge--1.3.3--patch-76 Archive: [email protected] Creator: Penny Leach <[email protected]> Date: Fri Sep 17 15:23:17 NZST 2004 Standard-date: 2004-09-17 03:23:17 GMT Modified-files: lib/uploadlib.php New-patches: [email protected]/moodle--eduforge--1.3.3--patch-76 Summary: bug fix for upload class related to optional file uploads (like in user/edit.php) Keywords: Revision: moodle--eduforge--1.3.3--patch-77 Archive: [email protected] Creator: Penny Leach <[email protected]> Date: Fri Sep 17 15:42:10 NZST 2004 Standard-date: 2004-09-17 03:42:10 GMT Modified-files: lang/en/moodle.php lib/uploadlib.php New-patches: [email protected]/moodle--eduforge--1.3.3--patch-77 Summary: more fixes for upload class Keywords:
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
||||
$um = new upload_manager('imagefile',false,false,null,false,0,true);
|
||||
$um = new upload_manager('imagefile',false,false,null,false,0,true,true);
|
||||
|
||||
if (find_form_errors($user, $usernew, $err,$um)) {
|
||||
if (empty($err['imagefile']) && $usernew->picture = save_profile_image($user->id, $um,'users')) {
|
||||
|
||||
Reference in New Issue
Block a user