Skip to content

Commit c793108

Browse files
committed
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]>
1 parent dbc2c23 commit c793108

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/files/appinfo/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
],
100100
[
101101
'name' => 'ajax#getStorageStats',
102-
'url' => '/ajax/getstoragestats.php',
102+
'url' => '/ajax/getstoragestats',
103103
'verb' => 'GET',
104104
],
105105
[

apps/files/js/files.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
state.call.abort();
2626
}
2727
state.dir = currentDir;
28-
state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats.php') + '?dir=' + encodeURIComponent(currentDir),function(response) {
28+
state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats') + '?dir=' + encodeURIComponent(currentDir),function(response) {
2929
state.dir = null;
3030
state.call = null;
3131
Files.updateMaxUploadFilesize(response);
@@ -37,7 +37,7 @@
3737
},
3838
_updateStorageQuotas: function() {
3939
var state = Files.updateStorageQuotas;
40-
state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats.php'),function(response) {
40+
state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats'),function(response) {
4141
Files.updateQuota(response);
4242
});
4343
},

0 commit comments

Comments
 (0)