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

This commit is contained in:
zero 2007-04-10 04:48:42 +00:00
parent 43dac1f249
commit 4addc42763
4 changed files with 13 additions and 7 deletions

View file

@ -32,7 +32,12 @@
// 레이아웃을 컴파일
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$zbxe_final_content = $oTemplate->compile($oModule->getLayoutPath(), $oModule->getLayoutFile());
$layout_path = $oModule->getLayoutPath();
$layout_file = $oModule->getLayoutFile();
if(!$layout_path) $layout_path = './common/tpl/';
if(!$layout_file) $layout_file = 'default_layout.html';
$zbxe_final_content = $oTemplate->compile($layout_path, $layout_file);
// 각 플러그인, 에디터 컴포넌트의 코드 변경
$oContext = &Context::getInstance();