From 5c11eca53d80ebcabbe71287253e001fbaea890f Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 8 Jun 2019 23:26:01 +0300 Subject: [PATCH] Flextype Box Plugin: Admin #125 #117 - fixes and refactoring --- site/plugins/admin/app/Controllers/TemplatesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/plugins/admin/app/Controllers/TemplatesController.php b/site/plugins/admin/app/Controllers/TemplatesController.php index 921749ef..2e52a678 100644 --- a/site/plugins/admin/app/Controllers/TemplatesController.php +++ b/site/plugins/admin/app/Controllers/TemplatesController.php @@ -157,7 +157,7 @@ class TemplatesController extends Controller */ public function editProcess(Request $request, Response $response) : Response { - $type = $request->getParsedBody()['type_current']; + $type = $request->getParsedBody()['type']; if (Filesystem::write(PATH['themes'] . '/' . $this->registry->get('settings.theme') . '/' . $this->_type_location($type) . $request->getParsedBody()['id'] . '.html', $request->getParsedBody()['data'])) { $this->flash->addMessage('success', __('admin_message_' . $type . '_saved'));