1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-28 23:40:41 +02:00

Flextype Box Plugin: Admin #125 #117

- fixes and refactoring
This commit is contained in:
Awilum
2019-06-08 23:26:01 +03:00
parent 87a8d92e20
commit 5c11eca53d

View File

@@ -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'));