From e70b7d3a6c82358e38a65eade5753b5ba33ab51a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 20 May 2008 09:38:25 -0400 Subject: [PATCH] add a space to textarea darcs-hash:20080520133825-84dde-10a3623b12380f12386a8bbbe06cb130902bff8e.gz --- actions/newnotice.php | 10 +++++----- actions/showstream.php | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/actions/newnotice.php b/actions/newnotice.php index 80630cdb19..8ea28360af 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -48,7 +48,7 @@ class NewnoticeAction extends Action { assert($notice); $notice->profile_id = $user->id; # user id *is* profile id $notice->created = DB_DataObject_Cast::dateTime(); - $notice->content = $this->arg('content'); + $notice->content = trim($this->arg('content')); return $notice->insert(); } @@ -57,10 +57,10 @@ class NewnoticeAction extends Action { common_element_start('form', array('id' => 'newnotice', 'method' => 'POST', 'action' => common_local_url('newnotice'))); common_element('span', 'nickname', $profile->nickname); - common_element_start('textarea', array('rows' => 4, 'cols' => 80, - 'name' => 'content', - 'id' => 'content')); - common_element_end('textarea'); + common_element('textarea', array('rows' => 4, 'cols' => 80, + 'name' => 'content', + 'id' => 'content'), + ' '); common_element('input', array('type' => 'submit', 'value' => 'Send')); common_element_end('form'); common_show_footer(); diff --git a/actions/showstream.php b/actions/showstream.php index fe561680af..5e8802cd72 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -83,10 +83,10 @@ class ShowstreamAction extends StreamAction { function notice_form() { common_element_start('form', array('id' => 'newnotice', 'method' => 'POST', 'action' => common_local_url('newnotice'))); - common_element_start('textarea', array('rows' => 4, 'cols' => 80, - 'name' => 'content', - 'id' => 'content')); - common_element_end('textarea'); + common_element('textarea', array('rows' => 4, 'cols' => 80, + 'name' => 'content', + 'id' => 'content'), + ' '); common_element('input', array('type' => 'submit', 'value' => 'Send')); common_element_end('form'); }