mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 08:09:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1262 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e5db303dea
commit
e1c7e3be8b
3 changed files with 14 additions and 6 deletions
|
|
@ -103,6 +103,14 @@
|
|||
$cache_file = sprintf('./files/cache/layout/%s.%s.cache.php', $layout, Context::getLangType());
|
||||
if(file_exists($cache_file)&&filectime($cache_file)>filectime($xml_file)) {
|
||||
include $cache_file;
|
||||
|
||||
if($layout_info->extra_var) {
|
||||
foreach($vars as $key => $value) {
|
||||
if(!$layout_info->extra_var->{$key} && !$layout_info->{$key}) {
|
||||
$layout_info->{$key} = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $layout_info;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue