From 3407707046239da4b97544f0ff5bda8288c09415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Wed, 9 Mar 2016 22:26:09 +0100 Subject: [PATCH] FEATURE: display content with given template --- modules/StaticPages/Handlers/StaticPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/StaticPages/Handlers/StaticPage.php b/modules/StaticPages/Handlers/StaticPage.php index 5967b97a..abb34bd5 100644 --- a/modules/StaticPages/Handlers/StaticPage.php +++ b/modules/StaticPages/Handlers/StaticPage.php @@ -30,6 +30,6 @@ class StaticPage extends Handler */ public function render(Content $content, $parameters) { - return Controller::VisitorsView('staticpages::content', ['page' => $content]); + return Controller::VisitorsView($content->template, ['page' => $content]); } } \ No newline at end of file