[Pkg-owncloud-commits] [owncloud] 09/123: Fix the share mail notification when the item is in a folder

David Prévot taffit at moszumanska.debian.org
Tue May 19 23:55:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit b4471c2591caed072b7810610543969c86a6e024
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Wed May 6 15:44:19 2015 +0200

    Fix the share mail notification when the item is in a folder
---
 lib/private/share/mailnotifications.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/private/share/mailnotifications.php b/lib/private/share/mailnotifications.php
index 1c15b6e..7120d84 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' => '/',

-- 
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