git-svn-id: http://xe-core.googlecode.com/svn/trunk@1262 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-20 09:40:10 +00:00
parent e5db303dea
commit e1c7e3be8b
3 changed files with 14 additions and 6 deletions

View file

@ -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;
}