mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 18:52:53 -04:00
Fix 404 when using index.php in the url
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
(cherry picked from commit ee793572cb)
This commit is contained in:
parent
bed164801e
commit
51151487b4
1 changed files with 4 additions and 2 deletions
|
|
@ -25,7 +25,9 @@
|
|||
state.call.abort();
|
||||
}
|
||||
state.dir = currentDir;
|
||||
state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats') + '?dir=' + encodeURIComponent(currentDir),function(response) {
|
||||
state.call = $.getJSON(OC.generateUrl('apps/files/ajax/getstoragestats', {
|
||||
dir: currentDir,
|
||||
}), function(response) {
|
||||
state.dir = null;
|
||||
state.call = null;
|
||||
Files.updateMaxUploadFilesize(response);
|
||||
|
|
@ -37,7 +39,7 @@
|
|||
},
|
||||
_updateStorageQuotas: function() {
|
||||
var state = Files.updateStorageQuotas;
|
||||
state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats'),function(response) {
|
||||
state.call = $.getJSON(OC.generateUrl('apps/files/ajax/getstoragestats'), function(response) {
|
||||
Files.updateQuota(response);
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue