summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-02 09:00:29 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-02 09:00:29 -0400
commit8c1ac74f7cf3fe1eebb826a2db9a28a851adf3c0 (patch)
tree3aa4e22de8ef0d47ea392877270c22f162ed511b /lib
parent4ee649058ff4a4957f31443ed01dba4272ba461f (diff)
full end element, no space in textarea
darcs-hash:20080702130029-84dde-481fe1f3d7df5cc931010374a7eb8db4f179cf92.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index 8e197fda5..fdb4808bd 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -94,7 +94,8 @@ function common_element_start($tag, $attrs=NULL) {
function common_element_end($tag) {
global $xw;
- $xw->endElement();
+ # TODO: switch based on $tag
+ $xw->fullEndElement();
}
function common_element($tag, $attrs=NULL, $content=NULL) {
@@ -838,7 +839,7 @@ function common_notice_form($action=NULL, $content=NULL) {
common_element('span', array('id' => 'counter', 'class' => 'counter'), '140');
common_element('textarea', array('id' => 'status_textarea',
'name' => 'status_textarea'),
- ($content) ? $content : ' ');
+ ($content) ? $content : '');
if ($action) {
common_hidden('returnto', $action);
}