summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-05-10 09:44:50 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-05-10 09:44:50 +0200
commite8e72aa9101b1c4b7e321dd3f17dcc9462f34a8f (patch)
tree0eec63cb17f7ad60130474a0bbdcbfaaa281d884 /lib/private
parent1fb7be42e55236c2663b52f89a85b54d81ae08ba (diff)
parent254576e1f7f5ec610ddbd9de81005397191cf52f (diff)
downloadnextcloud-server-e8e72aa9101b1c4b7e321dd3f17dcc9462f34a8f.tar.gz
nextcloud-server-e8e72aa9101b1c4b7e321dd3f17dcc9462f34a8f.zip
Merge pull request #24434 from owncloud/permalinks
Permalinks
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Share/MailNotifications.php22
1 files changed, 2 insertions, 20 deletions
diff --git a/lib/private/Share/MailNotifications.php b/lib/private/Share/MailNotifications.php
index f71651e71fc..afecff0b97b 100644
--- a/lib/private/Share/MailNotifications.php
+++ b/lib/private/Share/MailNotifications.php
@@ -119,27 +119,9 @@ class MailNotifications {
}
}
- // Link to folder, or root folder if a file
-
- if ($itemType === 'folder') {
- $args = array(
- 'dir' => $filename,
- );
- } else if (strpos($filename, '/')) {
- $args = array(
- 'dir' => '/' . dirname($filename),
- 'scrollto' => basename($filename),
- );
- } else {
- $args = array(
- 'dir' => '/',
- 'scrollto' => $filename,
- );
- }
-
$link = $this->urlGenerator->linkToRouteAbsolute(
- 'files.view.index',
- $args
+ 'files.viewcontroller.showFile',
+ ['fileId' => $items[0]['item_source']]
);
list($htmlBody, $textBody) = $this->createMailBody($filename, $link, $expiration, 'internal');