diff options
author | Tom Needham <tom@owncloud.com> | 2014-08-09 00:08:45 +0100 |
---|---|---|
committer | Tom Needham <tom@owncloud.com> | 2014-08-09 00:08:45 +0100 |
commit | 16dafa9cac162f3dcf00998f6e2ffb2b6ee70813 (patch) | |
tree | 840256b39861caa3dee4b49596bc14c374e4914f /lib/private/share | |
parent | 7b6b99f55a2400527f77ddedbd18d97e3723773f (diff) | |
download | nextcloud-server-16dafa9cac162f3dcf00998f6e2ffb2b6ee70813.tar.gz nextcloud-server-16dafa9cac162f3dcf00998f6e2ffb2b6ee70813.zip |
Fix link to files and folders in internal share emails
Diffstat (limited to 'lib/private/share')
-rw-r--r-- | lib/private/share/mailnotifications.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/private/share/mailnotifications.php b/lib/private/share/mailnotifications.php index cb74dcf8b90..62ab210b99e 100644 --- a/lib/private/share/mailnotifications.php +++ b/lib/private/share/mailnotifications.php @@ -99,12 +99,11 @@ class MailNotifications { } } + // Link to folder, or root folder if a file if ($itemType === 'folder') { - $foldername = "/Shared/" . $filename; + $foldername = $filename; } else { - // if it is a file we can just link to the Shared folder, - // that's the place where the user will find the file - $foldername = "/Shared"; + $foldername = "/"; } $link = \OCP\Util::linkToAbsolute('files', 'index.php', array("dir" => $foldername)); |