layout이 없을 경우 기본 레이아웃을 지정하도록 코드 변경. (설치시 화면 안 나오는 문제 수정됨)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6106 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-04-15 01:07:58 +00:00
parent 2868b62e2b
commit 13ad615f77

View file

@ -50,7 +50,6 @@
if(__DEBUG__==3) $start = getMicroTime();
$layout_path = $oModule->getLayoutPath();
if(!$layout_path) $layout_path = "./common/tpl";
$layout_file = $oModule->getLayoutFile();
$edited_layout_file = $oModule->getEditedLayoutFile();
@ -75,6 +74,8 @@
if(file_exists($edited_layout_css)) Context::addCSSFile($edited_layout_css,true,'all','',100);
}
if(!$layout_path) $layout_path = "./common/tpl";
if(!$layout_file) $layout_file = "default_layout";
$output = $oTemplate->compile($layout_path, $layout_file, $edited_layout_file);