mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
관리자 페이지에서 왼쪽 바로가기 메뉴의 언어별 출력을 위해 모듈 종류를 가져오는 부분에서 언어파일이 꼬이는 것 수정
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1996 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
dcff0c4a0b
commit
79e24b5fc3
2 changed files with 30 additions and 1 deletions
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
// 모듈 목록을 구해와서 숏컷에 해당하는 타이틀을 추출
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_list = $oModuleModel->getModuleList();
|
||||
$module_list = $oModuleModel->getModulesXmlInfo();
|
||||
foreach($module_list as $key => $val) {
|
||||
$module_name = $val->module;
|
||||
if($shortcut_list[$module_name]) $shortcut_list[$module_name]->title = $val->title;
|
||||
|
|
|
|||
|
|
@ -475,6 +475,35 @@
|
|||
return $output->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 모듈의 xml 정보만 구함
|
||||
**/
|
||||
function getModulesXmlInfo() {
|
||||
// 다운받은 모듈과 설치된 모듈의 목록을 구함
|
||||
$searched_list = FileHandler::readDir('./modules');
|
||||
$searched_count = count($searched_list);
|
||||
if(!$searched_count) return;
|
||||
|
||||
for($i=0;$i<$searched_count;$i++) {
|
||||
// 모듈의 이름
|
||||
$module_name = $searched_list[$i];
|
||||
|
||||
$path = ModuleHandler::getModulePath($module_name);
|
||||
|
||||
// 해당 모듈의 정보를 구함
|
||||
$info = $this->getModuleInfoXml($module_name);
|
||||
unset($obj);
|
||||
|
||||
$info->module = $module_name;
|
||||
$info->created_table_count = $created_table_count;
|
||||
$info->table_count = $table_count;
|
||||
$info->path = $path;
|
||||
$info->admin_index_act = $info->admin_index_act;
|
||||
$list[] = $info;
|
||||
}
|
||||
return $list;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 모듈의 종류와 정보를 구함
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue