From d34fc127a55301a08560d4c2b45bdf057e852432 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 26 Jun 2008 17:46:54 -0400 Subject: better handling of too-long messages darcs-hash:20080626214654-34904-68a52888deaaca54fe39bcd77ae51997aa3a3959.gz --- lib/util.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/util.php b/lib/util.php index e50582d1a..04eb2094e 100644 --- a/lib/util.php +++ b/lib/util.php @@ -774,7 +774,7 @@ function common_profile_url($nickname) { # Don't call if nobody's logged in -function common_notice_form($action=NULL) { +function common_notice_form($action=NULL, $content=NULL) { $user = common_current_user(); assert(!is_null($user)); common_element_start('form', array('id' => 'status_form', @@ -786,7 +786,7 @@ function common_notice_form($action=NULL) { _t('What\'s up, ').$user->nickname.'?'); common_element('textarea', array('id' => 'status_textarea', 'name' => 'status_textarea'), - ' '); + ($content) ? $content : ' '); if ($action) { common_hidden('returnto', $action); } -- cgit v1.2.3-54-g00ecf