summaryrefslogtreecommitdiffstats
path: root/lib/private/share
diff options
context:
space:
mode:
authorTom Needham <tom@owncloud.com>2014-08-09 00:08:45 +0100
committerTom Needham <tom@owncloud.com>2014-08-09 00:08:45 +0100
commit16dafa9cac162f3dcf00998f6e2ffb2b6ee70813 (patch)
tree840256b39861caa3dee4b49596bc14c374e4914f /lib/private/share
parent7b6b99f55a2400527f77ddedbd18d97e3723773f (diff)
downloadnextcloud-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.php7
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));