1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-13 08:34:19 +02:00

Admin Panel: Entries Manager - cleanup and refactoring.

This commit is contained in:
Awilum
2019-02-18 01:49:42 +03:00
parent 3f43c41a0b
commit 77c8f56953

View File

@@ -608,8 +608,11 @@ class EntriesManager
array_replace_recursive($data, $default_data)
)) {
Notification::set('success', __('admin_message_entry_created'));
Http::redirect(Http::getBaseUrl() . '/admin/entries/?entry=' . Http::post('parent_entry'));
} else {
Notification::set('success', __('admin_message_entry_was_not_created'));
}
Http::redirect(Http::getBaseUrl() . '/admin/entries/?entry=' . Http::post('parent_entry'));
}
} else {
throw new \RuntimeException("Request was denied because it contained an invalid security token. Please refresh the page and try again.");