- Bugfix: fixed form() being called incorrectly. Fixed bug #3699 reported

by Julian.
4.3.x
Dries Buytaert 2003-10-20 20:14:46 +00:00
parent 4fdad7aa07
commit f54c384381
2 changed files with 4 additions and 6 deletions

View File

@ -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_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_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 // the "enctype" attribute is required to upload files such as avatars
} }
else { else {
@ -1559,8 +1559,7 @@ function user_admin_edit($edit = array()) {
$output .= form_submit(t("Save account")); $output .= form_submit(t("Save account"));
$output .= form_submit(t("Delete 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 { else {
$output = t("No such user"); $output = t("No such user");

View File

@ -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_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_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 // the "enctype" attribute is required to upload files such as avatars
} }
else { else {
@ -1559,8 +1559,7 @@ function user_admin_edit($edit = array()) {
$output .= form_submit(t("Save account")); $output .= form_submit(t("Save account"));
$output .= form_submit(t("Delete 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 { else {
$output = t("No such user"); $output = t("No such user");