diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user.module | 5 | ||||
-rw-r--r-- | modules/user/user.module | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/modules/user.module b/modules/user.module index cdb968e43..82f567551 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1064,7 +1064,7 @@ function user_edit($edit = array()) { $output .= form_item(t("Password"), "<input type=\"password\" name=\"edit[pass1]\" size=\"12\" maxlength=\"24\" /> <input type=\"password\" name=\"edit[pass2]\" size=\"12\" maxlength=\"24\" />", t("Enter your new password twice if you want to change your current password or leave it blank if you are happy with your current password.")); $output .= form_submit(t("Save user information")); - $output = form($output, "post", 0, "enctype=\"multipart/form-data\""); + $output = form($output, "post", 0, array("enctype" => "multipart/form-data")); // the "enctype" attribute is required to upload files such as avatars } else { @@ -1559,8 +1559,7 @@ function user_admin_edit($edit = array()) { $output .= form_submit(t("Save account")); $output .= form_submit(t("Delete account")); - $output = form($output, "post", 0, "enctype=\"multipart/form-data\""); - + $output = form($output, "post", 0, array("enctype" => "multipart/form-data")); } else { $output = t("No such user"); diff --git a/modules/user/user.module b/modules/user/user.module index cdb968e43..82f567551 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1064,7 +1064,7 @@ function user_edit($edit = array()) { $output .= form_item(t("Password"), "<input type=\"password\" name=\"edit[pass1]\" size=\"12\" maxlength=\"24\" /> <input type=\"password\" name=\"edit[pass2]\" size=\"12\" maxlength=\"24\" />", t("Enter your new password twice if you want to change your current password or leave it blank if you are happy with your current password.")); $output .= form_submit(t("Save user information")); - $output = form($output, "post", 0, "enctype=\"multipart/form-data\""); + $output = form($output, "post", 0, array("enctype" => "multipart/form-data")); // the "enctype" attribute is required to upload files such as avatars } else { @@ -1559,8 +1559,7 @@ function user_admin_edit($edit = array()) { $output .= form_submit(t("Save account")); $output .= form_submit(t("Delete account")); - $output = form($output, "post", 0, "enctype=\"multipart/form-data\""); - + $output = form($output, "post", 0, array("enctype" => "multipart/form-data")); } else { $output = t("No such user"); |