diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-05-06 15:44:19 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-05-06 15:44:19 +0200 |
commit | b4471c2591caed072b7810610543969c86a6e024 (patch) | |
tree | 02ea185b324f962012ec9dd0445d82f18f012441 /lib/private/share | |
parent | f2d46693c6a7633c27db0b0cbe5dea57525d809e (diff) | |
download | nextcloud-server-b4471c2591caed072b7810610543969c86a6e024.tar.gz nextcloud-server-b4471c2591caed072b7810610543969c86a6e024.zip |
Fix the share mail notification when the item is in a folder
Diffstat (limited to 'lib/private/share')
-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' => '/', |