diff --git a/modules/blog/blog.controller.php b/modules/blog/blog.controller.php index 8ed190a6d..4022da883 100644 --- a/modules/blog/blog.controller.php +++ b/modules/blog/blog.controller.php @@ -328,6 +328,7 @@ // serialize하여 저장 $obj->category_xml_file = sprintf("./files/cache/blog_category/%s.xml.php", $module_srl); + $obj->mid = $module_info->mid; $skin_vars = serialize($obj); $oModuleController = &getController('module'); diff --git a/modules/blog/skins/default/layout.html b/modules/blog/skins/default/layout.html index df42435c4..fccbe0f35 100644 --- a/modules/blog/skins/default/layout.html +++ b/modules/blog/skins/default/layout.html @@ -2,7 +2,7 @@ @@ -20,11 +20,11 @@ @@ -71,10 +71,9 @@
- {$lang->cmd_write} | - + {$lang->cmd_write} | - {$lang->cmd_management} + {$lang->cmd_management}
diff --git a/modules/layout/layout.model.php b/modules/layout/layout.model.php index 93e40011f..918fb6d78 100644 --- a/modules/layout/layout.model.php +++ b/modules/layout/layout.model.php @@ -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; }