mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 14:49:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1846 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3aa0e229b2
commit
ab374b12f2
5 changed files with 28 additions and 10 deletions
|
|
@ -35,15 +35,25 @@
|
|||
$output = executeQuery('module.getDefaultMidInfo');
|
||||
if($output->data) return new Object();
|
||||
|
||||
// 기본 데이터 세팅
|
||||
$args->board_name = 'board';
|
||||
$args->browser_title = 'test module';
|
||||
$args->is_default = 'Y';
|
||||
$args->skin = 'default';
|
||||
// 기본 모듈을 찾음
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_info = $oModuleModel->getModuleInfoByMid();
|
||||
|
||||
// 게시판 controller 생성
|
||||
$oBoardController = &getAdminController('board');
|
||||
$oBoardController->procBoardAdminInsertBoard($args);
|
||||
// 기본 모듈이 없으면 새로 등록
|
||||
if(!$module_info->module_srl) {
|
||||
$args->board_name = 'board';
|
||||
$args->browser_title = 'test module';
|
||||
$args->is_default = 'Y';
|
||||
$args->skin = 'default';
|
||||
|
||||
// board 라는 이름의 모듈이 있는지 확인
|
||||
$module_info = $oModuleModel->getModuleInfoByMid($args->board_name);
|
||||
if($module_info->module_srl) $args->module_srl = $module_info->module_srl;
|
||||
|
||||
// 게시판 controller 생성
|
||||
$oBoardController = &getAdminController('board');
|
||||
$oBoardController->procBoardAdminInsertBoard($args);
|
||||
}
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue