Correct emails when folders are shared.
itemType is never "dir"; it's either "file" or "folder".
This commit is contained in:
parent
9a0cb2ccaa
commit
17cb47fbf6
|
@ -95,12 +95,12 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
|
||||||
|
|
||||||
// setup the email
|
// setup the email
|
||||||
$subject = (string)$l->t('User %s shared a file with you', $displayName);
|
$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);
|
$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',
|
$text = (string)$l->t('User %s shared the file "%s" with you. It is available for download here: %s',
|
||||||
array($displayName, $file, $link));
|
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',
|
$text = (string)$l->t('User %s shared the folder "%s" with you. It is available for download here: %s',
|
||||||
array($displayName, $file, $link));
|
array($displayName, $file, $link));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue