diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-12 21:25:34 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-12 21:25:34 +0300 |
commit | 1dc647122a5e6971b25ad687812e03518eb40c7a (patch) | |
tree | bcd548b9069ba4a782791195722da665e655275b | |
parent | ec9be244d488b924432c45686b0255adede8d215 (diff) |
Fix public download URLs
-rw-r--r-- | js/gallery.js | 2 | ||||
-rw-r--r-- | js/galleryfileaction.js | 2 | ||||
-rw-r--r-- | js/galleryimage.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/js/gallery.js b/js/gallery.js index 7594cec8..f24804b2 100644 --- a/js/gallery.js +++ b/js/gallery.js @@ -327,7 +327,7 @@ c: image.etag, requesttoken: oc_requesttoken }; - var downloadUrl = Gallery.utility.buildGalleryUrl('files/download', '/' + image.fileId, + var downloadUrl = Gallery.utility.buildGalleryUrl('files', '/download' + image.fileId, params); return { diff --git a/js/galleryfileaction.js b/js/galleryfileaction.js index c1953f9f..065fe55d 100644 --- a/js/galleryfileaction.js +++ b/js/galleryfileaction.js @@ -112,7 +112,7 @@ requesttoken: oc_requesttoken }; downloadUrl = - galleryFileAction.buildGalleryUrl('files/download', '/' + file.id, params); + galleryFileAction.buildGalleryUrl('files', '/download' + file.id, params); images.push({ name: file.name, diff --git a/js/galleryimage.js b/js/galleryimage.js index 93b3d2df..af07f316 100644 --- a/js/galleryimage.js +++ b/js/galleryimage.js @@ -92,7 +92,7 @@ c: image.etag, requesttoken: oc_requesttoken }; - url = Gallery.utility.buildGalleryUrl('files/download', '/' + image.fileId, + url = Gallery.utility.buildGalleryUrl('files', '/download' + image.fileId, params); } var a = $('<a/>').addClass('image').attr('href', url).attr('data-path', |