diff options
-rw-r--r-- | apps/files/js/files.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 6aa871d99c0..8645719f82b 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -25,7 +25,9 @@ state.call.abort(); } state.dir = currentDir; - state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats') + '?dir=' + encodeURIComponent(currentDir),function(response) { + state.call = $.getJSON(OC.generateUrl('apps/files/ajax/getstoragestats?dir={dir}', { + dir: currentDir, + }), function(response) { state.dir = null; state.call = null; Files.updateMaxUploadFilesize(response); @@ -37,7 +39,7 @@ }, _updateStorageQuotas: function() { var state = Files.updateStorageQuotas; - state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats'),function(response) { + state.call = $.getJSON(OC.generateUrl('apps/files/ajax/getstoragestats'), function(response) { Files.updateQuota(response); }); }, |