diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2003-12-27 19:21:48 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2003-12-27 19:21:48 +0000 |
commit | 41d2b2a349564c7a55df9bc511c36e3889d4558d (patch) | |
tree | e7b0355afdfff468a74b4a7bd698452e5f831f55 /modules/profile/profile.module | |
parent | 46f8f143225b7ef7ae7e8aa8c103275cc660f26b (diff) | |
download | brdo-41d2b2a349564c7a55df9bc511c36e3889d4558d.tar.gz brdo-41d2b2a349564c7a55df9bc511c36e3889d4558d.tar.bz2 |
- Fixed fileuploads for nodes failing without preview.
Diffstat (limited to 'modules/profile/profile.module')
-rw-r--r-- | modules/profile/profile.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 62e942b89..215a57df9 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -266,7 +266,7 @@ function _profile_validate_avatar(&$edit, $user) { $error = t("The uploaded image is too large; the maximum dimensions are %a pixels.", array("%a" => variable_get("profile_avatar_dimensions", "85x85"))); } else if ($file = file_save_upload('profile_avatar', variable_get("profile_avatar_path", "avatars") . FILE_SEPARATOR .'avatar-'. $user->uid . $extension, 1)) { - $edit["profile_avatar"] = $file->name; + $edit["profile_avatar"] = $file->path; } else { $error = t("Failed to upload the avatar image; the '%directory' directory doesn't exist.", array("%directory" => variable_get("profile_avatar_path", "avatars"))); |