Set default layout_file depending on the current layout_path

This commit is contained in:
Kijin Sung 2025-09-18 19:39:37 +09:00
parent 61ea93064a
commit dcd84033cf

View file

@ -156,9 +156,16 @@ class HTMLDisplayHandler
$layout_path = './common/tpl';
}
if (!$layout_file)
{
if ($layout_path === './common/tpl')
{
$layout_file = 'default_layout';
}
else
{
$layout_file = 'layout';
}
}
$oTemplate = new Rhymix\Framework\Template;
$output = $oTemplate->compile($layout_path, $layout_file, $edited_layout_file);