summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-06-21 16:44:37 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-06-21 16:44:37 +0200
commitc7931086cc557211073540cf13e2af4c5afaaad3 (patch)
treeb4c4c946004ecb869de1497bb2f5f0d5db82e57b /apps/files/js
parentdbc2c2325ea194b4588515e5fad988b7ab9bcf3f (diff)
downloadnextcloud-server-c7931086cc557211073540cf13e2af4c5afaaad3.tar.gz
nextcloud-server-c7931086cc557211073540cf13e2af4c5afaaad3.zip
Remove .php from url
Probably here for legacy reasons, but it is a bit weird to call an .php endpoint that doesn't correspond to a .php file Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/files.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index ae247584682..6aa871d99c0 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -25,7 +25,7 @@
state.call.abort();
}
state.dir = currentDir;
- state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats.php') + '?dir=' + encodeURIComponent(currentDir),function(response) {
+ state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats') + '?dir=' + encodeURIComponent(currentDir),function(response) {
state.dir = null;
state.call = null;
Files.updateMaxUploadFilesize(response);
@@ -37,7 +37,7 @@
},
_updateStorageQuotas: function() {
var state = Files.updateStorageQuotas;
- state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats.php'),function(response) {
+ state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats'),function(response) {
Files.updateQuota(response);
});
},