diff --git a/modules/blog/blog.view.php b/modules/blog/blog.view.php index 68753475e..f6084c310 100644 --- a/modules/blog/blog.view.php +++ b/modules/blog/blog.view.php @@ -84,7 +84,6 @@ /** * 블로그는 자체 레이아웃을 관리하기에 이와 관련된 세팅을 해줌 **/ - /* // 레이아웃 경로와 파일 지정 (블로그는 자체 레이아웃을 가지고 있음) $this->setLayoutPath($template_path); $this->setLayoutFile("layout"); @@ -110,7 +109,6 @@ // layout_info 변수 설정 Context::set('layout_info',$this->module_info); - */ // 모듈정보 세팅 Context::set('module_info',$this->module_info); diff --git a/modules/layout/layout.view.php b/modules/layout/layout.view.php index 722300265..bcae6e899 100644 --- a/modules/layout/layout.view.php +++ b/modules/layout/layout.view.php @@ -52,7 +52,7 @@ // 등록된 레이아웃이 없으면 오류 표시 if(!$layout_info) return $this->dispLayoutAdminContent(); - Context::set('layout_info', $layout_info); + Context::set('selected_layout', $layout_info); // 메뉴 목록을 가져옴 $oMenuModel = &getModel('menu'); @@ -75,7 +75,7 @@ // 등록된 레이아웃이 없으면 오류 표시 if(!$layout_info) return $this->dispLayoutAdminContent(); - Context::set('layout_info', $layout_info); + Context::set('selected_layout', $layout_info); // 레이아웃 코드 가져오기 $layout_file = sprintf('./files/cache/layout/%d.html', $layout_info->layout_srl); diff --git a/modules/layout/tpl/layout_edit.html b/modules/layout/tpl/layout_edit.html index d4842426a..ae63d346e 100644 --- a/modules/layout/tpl/layout_edit.html +++ b/modules/layout/tpl/layout_edit.html @@ -5,7 +5,7 @@
| {$layout_info->title} ver {$layout_info->version} ({$layout_info->layout}) | +{$selected_layout->title} ver {$selected_layout->version} ({$selected_layout->layout}) | |
|---|---|---|
| {nl2br($lang->about_layout_code)} | diff --git a/modules/layout/tpl/layout_modify.html b/modules/layout/tpl/layout_modify.html index c17ac7877..84a82be50 100644 --- a/modules/layout/tpl/layout_modify.html +++ b/modules/layout/tpl/layout_modify.html @@ -8,22 +8,22 @@||
| {$lang->layout} | -{$layout_info->title} ver {$layout_info->version} ({$layout_info->layout}) | +{$selected_layout->title} ver {$selected_layout->version} ({$selected_layout->layout}) |
| {$lang->path} | -{$layout_info->path} | +{$selected_layout->path} |
| {$lang->author} | -{$layout_info->author->name} | +{$selected_layout->author->name} |
| {$lang->description} | -{nl2br($layout_info->author->description)} | +{nl2br($selected_layout->author->description)} |