diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php index a98170363e926..2aeef05558c06 100644 --- a/apps/files/appinfo/routes.php +++ b/apps/files/appinfo/routes.php @@ -99,7 +99,7 @@ ], [ '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 ae247584682ec..6aa871d99c0f6 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); }); },