Skip to content

Commit

Permalink
Fix create folder url
Browse files Browse the repository at this point in the history
  • Loading branch information
Usbac committed Oct 27, 2024
1 parent 09797f0 commit 2afe559
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/bootstrap/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@
]);
});

$router->post('json:admin/media/createFolder', function() use ($lang) {
$router->post('json:admin/media/create_folder', function() use ($lang) {
if (!\Aurora\App\Permission::can('edit_media')) {
http_response_code(403);
return json_encode([ 'errors' => [ $lang->get('no_permission') ] ]);
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/partials/media_header.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function openCreateFolderDialog() {
}

function createFolder() {
Form.send('/admin/media/createFolder' + window.location.search, 'folder-dialog', null, {
Form.send('/admin/media/create_folder' + window.location.search, 'folder-dialog', null, {
csrf: csrf_token,
}).then(res => Listing.handleResponse(res));
}
Expand Down

0 comments on commit 2afe559

Please sign in to comment.