mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +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
|
|
@ -151,13 +151,20 @@ class HTMLDisplayHandler
|
||||||
Context::loadFile(array($edited_layout_css, 'all', '', 100));
|
Context::loadFile(array($edited_layout_css, 'all', '', 100));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!$layout_path)
|
if (!$layout_path)
|
||||||
{
|
{
|
||||||
$layout_path = './common/tpl';
|
$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;
|
$oTemplate = new Rhymix\Framework\Template;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue