]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed download URL in public page
authorVincent Petry <pvince81@owncloud.com>
Tue, 20 May 2014 11:24:52 +0000 (13:24 +0200)
committerVincent Petry <pvince81@owncloud.com>
Tue, 20 May 2014 11:24:52 +0000 (13:24 +0200)
apps/files/js/fileactions.js

index b9cd9816d4c8bed99fde48bf3d003f11a3940c11..2edb45f544c15268a67a0c0ffb38c6e7aaeda626 100644 (file)
                        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);
                                }