diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-10 21:54:23 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-10 21:54:23 +0100 |
commit | f1ecc758f5f6543566ae9970de837e5524cf8bf9 (patch) | |
tree | 33383c7105101a6429427a6134e7e90a2ab4c2e8 /core/ajax | |
parent | 1cde17d60b0f6aec8e50e31f5db8c76c92f8d1e3 (diff) | |
download | nextcloud-server-f1ecc758f5f6543566ae9970de837e5524cf8bf9.tar.gz nextcloud-server-f1ecc758f5f6543566ae9970de837e5524cf8bf9.zip |
send an individual email to each recipient
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/share.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index 86ee018e388..ca1951ec9ae 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -145,10 +145,17 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo } $result = $mailNotification->sendLinkShareMail($to_address, $file, $link, $expiration); - if($result === true) { + if(empty($result)) { \OCP\JSON::success(); } else { - \OCP\JSON::error(array('data' => array('message' => OC_Util::sanitizeHTML($result)))); + $l = OC_L10N::get('core'); + OCP\JSON::error(array( + 'data' => array( + 'message' => $l->t("Couldn't send mail to following users: %s ", + implode(', ', $result) + ) + ) + )); } break; |