Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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 <[email protected]>
(cherry picked from commit c793108)
  • Loading branch information
CarlSchwan authored and backportbot-nextcloud[bot] committed Jul 5, 2022
commit bed164801ef4df73962f5de6d5b12e5ca9c19383
2 changes: 1 addition & 1 deletion apps/files/appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
],
[
'name' => 'ajax#getStorageStats',
'url' => '/ajax/getstoragestats.php',
'url' => '/ajax/getstoragestats',
'verb' => 'GET',
],
[
Expand Down
4 changes: 2 additions & 2 deletions apps/files/js/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
});
},
Expand Down