From 71dc41e950b4d64435615713f4629bbab7c98f5c Mon Sep 17 00:00:00 2001 From: Ro Date: Tue, 4 Jan 2022 16:56:58 -0800 Subject: [PATCH] fix for page rendering always defaulting to page --- brain/data/Render.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/brain/data/Render.inc.php b/brain/data/Render.inc.php index 454e925..3c85a2a 100644 --- a/brain/data/Render.inc.php +++ b/brain/data/Render.inc.php @@ -78,7 +78,10 @@ class Render $layout = $page["layout"]; //new pages have no layout, so defautl for now - $layout = "page"; + if ($layout == "" || $layout == null) { + $layout = "page"; + } + $template = $this->theme . "/" . $layout . ".twig"; if (str_contains($page["layout"], "index")) { $location = "../public/index.html";