From dcd84033cf9263973cffd23e23324b30075dc5a5 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Thu, 18 Sep 2025 19:39:37 +0900 Subject: [PATCH] Set default layout_file depending on the current layout_path --- classes/display/HTMLDisplayHandler.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/classes/display/HTMLDisplayHandler.php b/classes/display/HTMLDisplayHandler.php index 4f9a09bce..609fe787a 100644 --- a/classes/display/HTMLDisplayHandler.php +++ b/classes/display/HTMLDisplayHandler.php @@ -151,13 +151,20 @@ class HTMLDisplayHandler Context::loadFile(array($edited_layout_css, 'all', '', 100)); } } - if(!$layout_path) + if (!$layout_path) { $layout_path = './common/tpl'; } - if(!$layout_file) + if (!$layout_file) { - $layout_file = 'default_layout'; + if ($layout_path === './common/tpl') + { + $layout_file = 'default_layout'; + } + else + { + $layout_file = 'layout'; + } } $oTemplate = new Rhymix\Framework\Template;