From: Ceri Davies Date: Thu, 14 Mar 2013 10:04:58 +0000 (+0000) Subject: Correct emails when folders are shared. X-Git-Tag: v6.0.0alpha2~1060^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=17cb47fbf6c5164dda3a27cb030f44557a1e3c1e;p=nextcloud-server.git Correct emails when folders are shared. itemType is never "dir"; it's either "file" or "folder". --- diff --git a/core/ajax/share.php b/core/ajax/share.php index 9201b48cb95..37ddf8ae6cf 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -95,12 +95,12 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo // setup the email $subject = (string)$l->t('User %s shared a file with you', $displayName); - if ($type === 'dir') + if ($type === 'folder') $subject = (string)$l->t('User %s shared a folder with you', $displayName); $text = (string)$l->t('User %s shared the file "%s" with you. It is available for download here: %s', array($displayName, $file, $link)); - if ($type === 'dir') + if ($type === 'folder') $text = (string)$l->t('User %s shared the folder "%s" with you. It is available for download here: %s', array($displayName, $file, $link));