diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-05-08 13:03:28 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-05-08 13:03:28 +0200 |
commit | c9921ec127ecf936a77d000754063120e1597932 (patch) | |
tree | 6b80193770c0b5ae928b65524e30114ec871dd86 /lib | |
parent | bcbf9a9bb577040ea760ed23d91ab9204b03943c (diff) | |
parent | b4471c2591caed072b7810610543969c86a6e024 (diff) | |
download | nextcloud-server-c9921ec127ecf936a77d000754063120e1597932.tar.gz nextcloud-server-c9921ec127ecf936a77d000754063120e1597932.zip |
Merge pull request #16124 from owncloud/issue-16109-fix-share-email-with-shared-folder
Fix the share mail notification when the item is in a folder
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/share/mailnotifications.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/share/mailnotifications.php b/lib/private/share/mailnotifications.php index 1c15b6e3e1d..7120d8493b0 100644 --- a/lib/private/share/mailnotifications.php +++ b/lib/private/share/mailnotifications.php @@ -122,6 +122,11 @@ class MailNotifications { $args = array( 'dir' => $filename, ); + } else if (strpos($filename, '/')) { + $args = array( + 'dir' => '/' . dirname($filename), + 'scrollto' => basename($filename), + ); } else { $args = array( 'dir' => '/', |