summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2005-12-01 06:06:40 +0000
committerDries Buytaert2005-12-01 06:06:40 +0000
commitb7a55d67f58a8484388439a15b7c60d444a41753 (patch)
treef1755e8922ceffb8c2abd2cc3e1e9b591738105b
parentdea58399ff22d3697216b5fdaee3f9feffbeadec (diff)
- Patch #39494 by nsk: comment form not shown right.4.6.4
-rw-r--r--includes/common.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc
index db38f45..78ec1ad 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1216,7 +1216,6 @@ function form_password($title, $name, $value, $size, $maxlength, $description =
* A themed HTML string representing the field.
*/
function form_textarea($title, $name, $value, $cols, $rows, $description = NULL, $attributes = NULL, $required = FALSE) {
- $cols = $cols ? ' cols="'. $cols .'"' : '';
$pre = '';
$post = '';
@@ -1228,7 +1227,7 @@ function form_textarea($title, $name, $value, $cols, $rows, $description = NULL,
}
}
- return theme('form_element', $title, $pre .'<textarea wrap="virtual"'. check_plain($cols) .' rows="'. check_plain($rows) .'" name="edit['. $name .']" id="edit-'. $name .'" class="'. _form_get_class('textarea', $required, _form_get_error($name)) .'"'. drupal_attributes($attributes) .'>'. check_plain($value) .'</textarea>'. $post, $description, 'edit-'. $name, $required, _form_get_error($name));
+ return theme('form_element', $title, $pre .'<textarea wrap="virtual" cols="'. check_plain($cols) .'" rows="'. check_plain($rows) .'" name="edit['. $name .']" id="edit-'. $name .'" class="'. _form_get_class('textarea', $required, _form_get_error($name)) .'"'. drupal_attributes($attributes) .'>'. check_plain($value) .'</textarea>'. $post, $description, 'edit-'. $name, $required, _form_get_error($name));
}
/**