summaryrefslogtreecommitdiff
path: root/actions/apidirectmessagenew.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-10-20 17:28:28 -0700
committerZach Copley <zach@status.net>2010-10-20 17:28:28 -0700
commitbfdb8385ecc745002b8c45510caf2fdf7c2d2c9f (patch)
tree392196b097fafb10430bb7db763fd744a0639bf3 /actions/apidirectmessagenew.php
parente56385a7bb25336a72c1d37ad43d51ba8e238231 (diff)
parent31f52ec37c5a2be76c197a9c492d3a236af045cd (diff)
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Conflicts: actions/apioauthauthorize.php lib/apioauthstore.php
Diffstat (limited to 'actions/apidirectmessagenew.php')
-rw-r--r--actions/apidirectmessagenew.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/apidirectmessagenew.php b/actions/apidirectmessagenew.php
index c126cd312..ccef57b3f 100644
--- a/actions/apidirectmessagenew.php
+++ b/actions/apidirectmessagenew.php
@@ -121,9 +121,9 @@ class ApiDirectMessageNewAction extends ApiAuthAction
} else {
$content_shortened = common_shorten_links($this->content);
if (Message::contentTooLong($content_shortened)) {
- // TRANS: Client error displayed when message content is too long.
- // TRANS: %d is the maximum number of characters for a message.
$this->clientError(
+ // TRANS: Client error displayed when message content is too long.
+ // TRANS: %d is the maximum number of characters for a message.
sprintf(_m('That\'s too long. Maximum message size is %d character.', 'That\'s too long. Maximum message size is %d characters.', Message::maxContent()),
Message::maxContent()
),