Allow admins to set a min site textlimit of 0 (unlimited)

This commit is contained in:
Zach Copley 2010-03-19 10:30:04 -07:00
parent fb50a2d83c
commit 348412f9c9

View 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