From 85d592c5ee9fbdbd9359d4b9a78f509ccd229457 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 24 Jul 2018 14:53:38 -0600 Subject: [PATCH] * Filemanager - add {{webdav_url}} placeholder for external path using webdav --- filemanager/inc/class.filemanager_merge.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filemanager/inc/class.filemanager_merge.inc.php b/filemanager/inc/class.filemanager_merge.inc.php index c7b42bd033..3d0ea98871 100644 --- a/filemanager/inc/class.filemanager_merge.inc.php +++ b/filemanager/inc/class.filemanager_merge.inc.php @@ -203,6 +203,7 @@ class filemanager_merge extends Api\Storage\Merge if ($link[0] == '/') $link = Api\Framework::getUrl($link); $file['link'] = Api\Html::a_href(Api\Html::htmlspecialchars($file['name']), $link); + $file['webdav_url'] = Api\Session::link(Vfs::download_url($file['url'])); $file['url'] = $link; // Add markers @@ -239,6 +240,7 @@ class filemanager_merge extends Api\Storage\Merge 'folder' => 'Containing folder', 'folder_file' => 'Containing folder and file name', 'url' => 'url', + 'webdav_url' => 'External path using webdav', 'link' => 'Clickable link to file', 'comment' => 'comment', 'mtime' => 'modified',