mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
1. 가상사이트의 구분 변수명을 sid에서 vid로 변경
2. rank_count 위젯에서 그룹이 지정되지 않았을 경우 해당 가상 사이트의 모든 그룹을 대상으로 하도록 코드 수정 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6053 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
562c27f1d1
commit
5e883170bb
21 changed files with 87 additions and 78 deletions
|
|
@ -14,11 +14,19 @@
|
|||
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||
**/
|
||||
function proc($args) {
|
||||
// 그룹이 선택되지 않으면 출력이 되지 않는다.
|
||||
if(!$args->with_group) return '';
|
||||
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$obj->site_srl = (int)$site_module_info->site_srl;
|
||||
$site_srl = (int)$site_module_info->site_srl;
|
||||
|
||||
// 그룹이 선택되지 않으면 모든 그룹을 추출함
|
||||
if(!$args->with_group) {
|
||||
$oMemberModel = &getModel('member');
|
||||
$groups = $oMemberModel->getGroups($site_srl);
|
||||
if(is_array($groups)) {
|
||||
$obj->with_group = implode(',',array_keys($groups));
|
||||
} else return;
|
||||
}
|
||||
|
||||
$obj->site_srl = $site_srl;
|
||||
$obj->list_count = $args->list_count?$args->list_count:5;
|
||||
$obj->selected_group_srl = $args->with_group;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue