Commit bfd18432 authored by Dries's avatar Dries
Browse files

- Patch #7482 by Gerhard: double 'edit' in comment_user(). One 'edit' had to be 'validate'.

parent 0a74e0b3
......@@ -138,10 +138,10 @@ function comment_settings() {
function comment_user($type, $edit, &$user) {
switch ($type) {
case "edit":
case 'edit':
// when user tries to edit his own data
return array(t('Personal information') => form_textarea(t("Signature"), "signature", $user->signature, 64, 3, t("Your signature will be publicly displayed at the end of your comments.") ."<br />". filter_tips_short()));
case "edit":
case 'validate':
// validate user data editing
return array("signature" => $edit["signature"]);
}
......
......@@ -138,10 +138,10 @@ function comment_settings() {
function comment_user($type, $edit, &$user) {
switch ($type) {
case "edit":
case 'edit':
// when user tries to edit his own data
return array(t('Personal information') => form_textarea(t("Signature"), "signature", $user->signature, 64, 3, t("Your signature will be publicly displayed at the end of your comments.") ."<br />". filter_tips_short()));
case "edit":
case 'validate':
// validate user data editing
return array("signature" => $edit["signature"]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment