summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-26 17:46:54 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-26 17:46:54 -0400
commitd34fc127a55301a08560d4c2b45bdf057e852432 (patch)
tree5043d55608aa6d99daebcee55b983207f0fdde98 /lib/util.php
parentf4a0c2b8012fa6699b980af6f1af905d1cb0f6e3 (diff)
better handling of too-long messages
darcs-hash:20080626214654-34904-68a52888deaaca54fe39bcd77ae51997aa3a3959.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php4
1 files changed, 2 insertions, 2 deletions
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);
}