diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-17 23:00:19 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-17 23:00:19 -0400 |
commit | fddcfd75c53b8e08be5b71ca24c31b6982fea7ad (patch) | |
tree | 3394e08037ed137f6f80efad673e5a12f444f60b /lib/util.php | |
parent | 073281c0f4d741f1528e407235874ebdcb2ba64d (diff) |
fake spaces in textareas to fakeout XMLWriter
darcs-hash:20080618030019-84dde-194b5591d9da98c74a513db540b802ed56455ae1.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/util.php b/lib/util.php index ced829dbb..18ac303d5 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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_start('textarea', array('rows' => 3, - 'cols' => 40, - 'name' => $id, - 'id' => $id)); - common_element_end('textarea'); + common_element('textarea', array('rows' => 3, + 'cols' => 40, + 'name' => $id, + 'id' => $id), + ($content) ? $content : ' '); if ($instructions) { common_element('span', 'input_instructions', $instructions); } @@ -646,9 +646,9 @@ function common_notice_form() { common_element('label', array('for' => 'status_update', 'id' => 'status_label'), _t('What\'s up, ').$user->nickname.'?'); - common_element_start('textarea', array('id' => 'status_textarea', - 'name' => 'status_textarea')); - common_element_end('textarea'); + common_element('textarea', array('id' => 'status_textarea', + 'name' => 'status_textarea'), + ' '); common_element('input', array('id' => 'status_submit', 'name' => 'status_submit', 'type' => 'submit', |