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-21 17:44:37 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-07-05 18:58:11 +0300
commitbed164801ef4df73962f5de6d5b12e5ca9c19383 (patch)
tree9b04867a5c1d672e9baaccfac6d600a179152edc
parent1c83b2bc50748d8519e5a8943ef4d0e0e94b83cf (diff)
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> (cherry picked from commit c7931086cc557211073540cf13e2af4c5afaaad3)
-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 788f11e1ee9..603ff9b704f 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);
});
},