diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-08-21 06:13:41 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-08-21 06:33:22 -0400 |
commit | cd688acceb131312e10a219700ba21d4a3566695 (patch) | |
tree | 31f5d4d8af27d5677ba25e9fe438f02be53f6ed9 /actions/newgroup.php | |
parent | a28bbdfb0fcc5ec253a0ab6f94a6f0eeda0d21dc (diff) |
allow configurable length for user group description
Diffstat (limited to 'actions/newgroup.php')
-rw-r--r-- | actions/newgroup.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/newgroup.php b/actions/newgroup.php index 0289e77c2..71647d834 100644 --- a/actions/newgroup.php +++ b/actions/newgroup.php @@ -146,8 +146,8 @@ class NewgroupAction extends Action } else if (!is_null($fullname) && mb_strlen($fullname) > 255) { $this->showForm(_('Full name is too long (max 255 chars).')); return; - } else if (!is_null($description) && mb_strlen($description) > 140) { - $this->showForm(_('description is too long (max 140 chars).')); + } else if (User_group::descriptionTooLong($description)) { + $this->showForm(sprintf(_('description is too long (max %d chars).'), User_group::maxDescription())); return; } else if (!is_null($location) && mb_strlen($location) > 255) { $this->showForm(_('Location is too long (max 255 chars).')); |