aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/dirsearch.php4
-rw-r--r--mod/mail.php3
2 files changed, 4 insertions, 3 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php
index 548acbd08..388e5f3ac 100644
--- a/mod/dirsearch.php
+++ b/mod/dirsearch.php
@@ -26,8 +26,8 @@ function dirsearch_content(&$a) {
$token = get_config('system','realm_token');
if($token && $access_token != $token) {
- $result['message'] = t('This directory server requires an access token');
- return;
+ $ret['message'] = t('This directory server requires an access token');
+ json_return_and_die($ret);
}
diff --git a/mod/mail.php b/mod/mail.php
index 536149a28..44c4b479d 100644
--- a/mod/mail.php
+++ b/mod/mail.php
@@ -329,7 +329,8 @@ function mail_content(&$a) {
'to_url' => chanlink_hash($message['to_xchan']),
'to_photo' => $message['to']['xchan_photo_s'],
'subject' => $message['title'],
- 'body' => smilies(bbcode($message['body']) . $s),
+ 'body' => smilies(bbcode($message['body'])),
+ 'attachments' => $s,
'delete' => t('Delete message'),
'dreport' => t('Delivery report'),
'recall' => t('Recall message'),