]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/editgroup.php
add hooks to allow loading custom help documentation
[quix0rs-gnu-social.git] / actions / editgroup.php
index 6aa6f8b11f20d82d59b46a57bf8129d81e9b327e..aeeea2b63ce73e3f0aebb675e9f53c0e374079d1 100644 (file)
@@ -196,8 +196,8 @@ class EditgroupAction extends GroupDesignAction
         } 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).'));