* Filemanager - add {{webdav_url}} placeholder for external path using webdav

This commit is contained in:
nathangray 2018-07-24 14:53:38 -06:00
parent fbea34819a
commit 85d592c5ee

View File

@ -203,6 +203,7 @@ class filemanager_merge extends Api\Storage\Merge
if ($link[0] == '/') $link = Api\Framework::getUrl($link); if ($link[0] == '/') $link = Api\Framework::getUrl($link);
$file['link'] = Api\Html::a_href(Api\Html::htmlspecialchars($file['name']), $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; $file['url'] = $link;
// Add markers // Add markers
@ -239,6 +240,7 @@ class filemanager_merge extends Api\Storage\Merge
'folder' => 'Containing folder', 'folder' => 'Containing folder',
'folder_file' => 'Containing folder and file name', 'folder_file' => 'Containing folder and file name',
'url' => 'url', 'url' => 'url',
'webdav_url' => 'External path using webdav',
'link' => 'Clickable link to file', 'link' => 'Clickable link to file',
'comment' => 'comment', 'comment' => 'comment',
'mtime' => 'modified', 'mtime' => 'modified',