From 160a2bc36fa99f02d74c4e190fa75f6f3b02f4e2 Mon Sep 17 00:00:00 2001
From: Vincent Petry <pvince81@owncloud.com>
Date: Tue, 20 May 2014 13:24:52 +0200
Subject: [PATCH] Fixed download URL in public page

---
 apps/files/js/fileactions.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index b9cd9816d4..2edb45f544 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -244,7 +244,7 @@
 			this.register(downloadScope, 'Download', OC.PERMISSION_READ, function () {
 				return OC.imagePath('core', 'actions/download');
 			}, function (filename) {
-				var url = OCA.Files.Files.getDownloadUrl(filename, fileList.getCurrentDirectory());
+				var url = fileList.getDownloadUrl(filename, fileList.getCurrentDirectory());
 				if (url) {
 					OC.redirect(url);
 				}
-- 
GitLab