[Pkg-owncloud-commits] [owncloud] 70/103: Fix the share mail notification when the item is in a folder
    David Prévot 
    taffit at moszumanska.debian.org
       
    Sun May 31 12:32:39 UTC 2015
    
    
  
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.4RC1
in repository owncloud.
commit dbaaae071b1b94d9bfa5d867a951052168e9a578
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 2e3f71f..09d2196 100644
--- a/lib/private/share/mailnotifications.php
+++ b/lib/private/share/mailnotifications.php
@@ -104,6 +104,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