diff options
author | Ceri Davies <ceri@submonkey.net> | 2013-03-14 10:04:58 +0000 |
---|---|---|
committer | Ceri Davies <ceri@submonkey.net> | 2013-03-14 10:04:58 +0000 |
commit | 17cb47fbf6c5164dda3a27cb030f44557a1e3c1e (patch) | |
tree | 64d53c0eb882ef98f12f9cb79c9a0c89307e20ce /core | |
parent | 9a0cb2ccaa92731a14e079a024bb38c934130d78 (diff) | |
download | nextcloud-server-17cb47fbf6c5164dda3a27cb030f44557a1e3c1e.tar.gz nextcloud-server-17cb47fbf6c5164dda3a27cb030f44557a1e3c1e.zip |
Correct emails when folders are shared.
itemType is never "dir"; it's either "file" or "folder".
Diffstat (limited to 'core')
-rw-r--r-- | core/ajax/share.php | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |