]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Allow admins to set a min site textlimit of 0 (unlimited)
authorZach Copley <zach@status.net>
Fri, 19 Mar 2010 17:30:04 +0000 (10:30 -0700)
committerZach Copley <zach@status.net>
Fri, 19 Mar 2010 17:30:04 +0000 (10:30 -0700)
actions/siteadminpanel.php

index cb3c2e8fde7f4ee5339cd0a476fd0a9a1238db19..e5482987fb02cf3a57fdc44713139936d99b34ad 100644 (file)
@@ -161,8 +161,8 @@ class SiteadminpanelAction extends AdminPanelAction
 
         // Validate text limit
 
-        if (!Validate::number($values['site']['textlimit'], array('min' => 140))) {
-            $this->clientError(_("Minimum text limit is 140 characters."));
+        if (!Validate::number($values['site']['textlimit'], array('min' => 0))) {
+            $this->clientError(_("Minimum text limit is 0 (unlimited)."));
         }
 
         // Validate dupe limit