Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-06-23 18:39:30 +0300
committerGitHub <noreply@github.com>2022-06-23 18:39:30 +0300
commit55bad5a1bbda045bfdc46b38cd669c3eec9259c1 (patch)
tree7776d62411d961e741eca7b106a4509d7d5cc6cd /apps/files
parentf8153a6afc8a2c2e7fe391128919d1460fefc4a3 (diff)
parentc7931086cc557211073540cf13e2af4c5afaaad3 (diff)
Merge pull request #32962 from nextcloud/getstoragestat-change-url
Remove .php from url
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/appinfo/routes.php2
-rw-r--r--apps/files/js/files.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php
index a98170363e9..2aeef05558c 100644
--- a/apps/files/appinfo/routes.php
+++ b/apps/files/appinfo/routes.php
@@ -99,7 +99,7 @@ $application->registerRoutes(
],
[
'name' => 'ajax#getStorageStats',
- 'url' => '/ajax/getstoragestats.php',
+ 'url' => '/ajax/getstoragestats',
'verb' => 'GET',
],
[
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);
});
},