[DirectMessage] Fix some wrong calls after MessageModel introduction in d9a9a3746b
This commit is contained in:
@@ -98,16 +98,16 @@ class Group_message extends Managed_DataObject
|
||||
|
||||
// We use the same limits as for 'regular' private messages.
|
||||
|
||||
if (Message::contentTooLong($text)) {
|
||||
if (MessageModel::contentTooLong($text)) {
|
||||
// TRANS: Exception thrown when trying to send group private message that is too long.
|
||||
// TRANS: %d is the maximum meggage length.
|
||||
throw new Exception(sprintf(
|
||||
_m(
|
||||
'That\'s too long. Maximum message size is %d character.',
|
||||
'That\'s too long. Maximum message size is %d characters.',
|
||||
Message::maxContent()
|
||||
MessageModel::maxContent()
|
||||
),
|
||||
Message::maxContent()
|
||||
MessageModel::maxContent()
|
||||
));
|
||||
}
|
||||
|
||||
|
@@ -133,7 +133,7 @@ class GroupMessageForm extends Form
|
||||
'name' => 'content'),
|
||||
($this->content) ? $this->content : '');
|
||||
|
||||
$contentLimit = Message::maxContent();
|
||||
$contentLimit = MessageModel::maxContent();
|
||||
|
||||
if ($contentLimit > 0) {
|
||||
$this->out->elementStart('dl', 'form_note');
|
||||
|
Reference in New Issue
Block a user