mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-25 04:45:58 +08:00
Use proper API to get a download URL
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
9e74b9c6a6
commit
344996f157
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ function escapeHTML(s) {
|
|||
* @deprecated use Files.getDownloadURL() instead
|
||||
*/
|
||||
function fileDownloadPath(dir, file) {
|
||||
return OC.filePath('files', 'ajax', 'download.php')+'?files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir);
|
||||
return OCA.Files.Files.getDownloadUrl(file, dir);
|
||||
}
|
||||
|
||||
/** @namespace */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue