]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correct emails when folders are shared.
authorCeri Davies <ceri@submonkey.net>
Thu, 14 Mar 2013 10:04:58 +0000 (10:04 +0000)
committerBjörn Schießle <schiessle@owncloud.com>
Fri, 15 Mar 2013 11:43:22 +0000 (12:43 +0100)
itemType is never "dir"; it's either "file" or "folder".

core/ajax/share.php

index 7ebd89497100ff0b9645c3ef8c1351ab001ed34a..5854b65aa03161248d92125567aa0a55b8232258 100644 (file)
@@ -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));