summaryrefslogtreecommitdiff
path: root/lib/mailhandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mailhandler.php')
-rw-r--r--lib/mailhandler.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mailhandler.php b/lib/mailhandler.php
index e9ba41839..459657ffe 100644
--- a/lib/mailhandler.php
+++ b/lib/mailhandler.php
@@ -55,10 +55,11 @@ class MailHandler
return true;
}
$msg = $this->cleanup_msg($msg);
- $msg = common_shorten_links($msg);
+ $msg = $user->shortenLinks($msg);
if (Notice::contentTooLong($msg)) {
- $this->error($from, sprintf(_('That\'s too long. '.
- 'Max notice size is %d chars.'),
+ $this->error($from, sprintf(_('That\'s too long. Maximum notice size is %d character.',
+ 'That\'s too long. Maximum notice size is %d characters.',
+ Notice::maxContent()),
Notice::maxContent()));
}