[Pkg-owncloud-commits] [owncloud] 51/121: Fix link to files and folders in internal share emails
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 16:44:31 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 8972f74ecff3e771afad5bc531ca364a47480b87
Author: Tom Needham <tom at owncloud.com>
Date: Sat Aug 9 00:08:45 2014 +0100
Fix link to files and folders in internal share emails
---
lib/private/share/mailnotifications.php | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/lib/private/share/mailnotifications.php b/lib/private/share/mailnotifications.php
index cb74dcf..62ab210 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));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list