From 64757559b4e0140fca8182c9c53819757d65c546 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 31 May 2019 17:12:57 +0300 Subject: [PATCH] Flextype Box Plugin: Admin #125 #117 - Templates Controller/Views implementation --- site/plugins/admin/app/Controllers/TemplatesController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/site/plugins/admin/app/Controllers/TemplatesController.php b/site/plugins/admin/app/Controllers/TemplatesController.php index 4e0557e6..da303756 100644 --- a/site/plugins/admin/app/Controllers/TemplatesController.php +++ b/site/plugins/admin/app/Controllers/TemplatesController.php @@ -90,6 +90,7 @@ class TemplatesController extends Controller return $this->view->render($response, 'plugins/admin/views/templates/extends/templates/edit.html', [ 'menu_item' => 'templates', + 'id' => $request->getQueryParams()['id'], 'data' => Filesystem::read(PATH['themes'] . '/' . $this->registry->get('settings.theme') . $_type . $request->getQueryParams()['id'] . '.html'), 'type' => (($request->getQueryParams()['type'] && $request->getQueryParams()['type'] == 'partial') ? 'partial' : 'template'), 'links' => [