diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-08-21 06:37:22 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-08-21 06:37:22 -0400 |
commit | 7a6827258032f9d082f093c741125262ddeb81da (patch) | |
tree | de729f3a06c2629cd7a40d7d5b3a3d3daa5575f2 /lib/groupeditform.php | |
parent | 92ef4895b40498d97150a40b2f24fe9604e4c944 (diff) |
correct instructions for length in groupeditform
Diffstat (limited to 'lib/groupeditform.php')
-rw-r--r-- | lib/groupeditform.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/groupeditform.php b/lib/groupeditform.php index 62ee78614..47e62d469 100644 --- a/lib/groupeditform.php +++ b/lib/groupeditform.php @@ -163,9 +163,15 @@ class GroupEditForm extends Form _('URL of the homepage or blog of the group or topic')); $this->out->elementEnd('li'); $this->out->elementStart('li'); + $desclimit = User_group::maxDescription(); + if ($desclimit == 0) { + $descinstr = _('Describe the group or topic'); + } else { + $descinstr = sprintf(_('Describe the group or topic in %d characters'), $desclimit); + } $this->out->textarea('description', _('Description'), ($this->out->arg('description')) ? $this->out->arg('description') : $description, - _('Describe the group or topic in 140 chars')); + $descinstr); $this->out->elementEnd('li'); $this->out->elementStart('li'); $this->out->input('location', _('Location'), |