mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Set default layout_file depending on the current layout_path
This commit is contained in:
parent
61ea93064a
commit
dcd84033cf
1 changed files with 10 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue