accept 140-character UTF-8 strings to content
darcs-hash:20080817151751-84dde-b3fc3ee57872f53a465fd9b45f4255e5e3be3450.gz
This commit is contained in:
parent
808b40dc53
commit
164a15d253
|
@ -43,7 +43,7 @@ class NewnoticeAction extends Action {
|
||||||
if (!$content) {
|
if (!$content) {
|
||||||
$this->show_form(_('No content!'));
|
$this->show_form(_('No content!'));
|
||||||
return;
|
return;
|
||||||
} else if (strlen($content) > 140) {
|
} else if (mb_strlen($content) > 140) {
|
||||||
$this->show_form(_('That\'s too long. Max notice size is 140 chars.'));
|
$this->show_form(_('That\'s too long. Max notice size is 140 chars.'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user