Skip to content

Commit

Permalink
Use proper API to get a download URL
Browse files Browse the repository at this point in the history
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
MorrisJobke committed Jan 23, 2018
1 parent 9e74b9c commit 344996f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/js/mocks/OC.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 344996f

Please sign in to comment.