]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't put fake spaces in the text area
authorEvan Prodromou <evan@prodromou.name>
Wed, 18 Jun 2008 02:52:53 +0000 (22:52 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 18 Jun 2008 02:52:53 +0000 (22:52 -0400)
darcs-hash:20080618025253-84dde-3a9f3dceccc366b069b931b4159d8160c1ad62ce.gz

lib/util.php

index 1a29fcda97402709d5b36ac13d51c8d32294473c..ced829dbb4769e0f74aef7800e9e7987e969c43a 100644 (file)
@@ -346,11 +346,11 @@ function common_submit($id, $label) {
 function common_textarea($id, $label, $content=NULL, $instructions=NULL) {
        common_element_start('p');
        common_element('label', array('for' => $id), $label);
-       common_element('textarea', array('rows' => 3,
-                                                                        'cols' => 40,
-                                                                        'name' => $id,
-                                                                        'id' => $id),
-                                  ($content) ? $content : ' ');
+       common_element_start('textarea', array('rows' => 3,
+                                                                                  'cols' => 40,
+                                                                                  'name' => $id,
+                                                                                  'id' => $id));
+       common_element_end('textarea');
        if ($instructions) {
                common_element('span', 'input_instructions', $instructions);
        }
@@ -646,8 +646,9 @@ function common_notice_form() {
        common_element('label', array('for' => 'status_update',
                                                                  'id' => 'status_label'),
                                   _t('What\'s up, ').$user->nickname.'?');
-       common_element('textarea', array('id' => 'status_textarea',
-                                                                        'name' => 'status_textarea'));
+       common_element_start('textarea', array('id' => 'status_textarea',
+                                                                                  'name' => 'status_textarea'));
+       common_element_end('textarea');
        common_element('input', array('id' => 'status_submit',
                                                                  'name' => 'status_submit',
                                                                  'type' => 'submit',