mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 06:39:56 +09:00
#17865150 : function getGroupImageMark return null if group image is disabled in configuration
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6004 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
759d04c772
commit
870344d454
2 changed files with 15 additions and 9 deletions
|
|
@ -77,6 +77,7 @@
|
|||
if(!$config->profile_image_max_height) $config->profile_image_max_height = 80;
|
||||
if(!$config->skin) $config->skin = "default";
|
||||
if(!$config->editor_skin) $config->editor_skin = "default";
|
||||
if(!$config->group_image_mark) $config->group_image_mark = "N";
|
||||
Context::set('config',$config);
|
||||
|
||||
// 회원 관리 모듈의 스킨 목록을 구함
|
||||
|
|
|
|||
|
|
@ -572,22 +572,27 @@
|
|||
* @brief group의 이미지마크 정보를 구함
|
||||
**/
|
||||
function getGroupImageMark($member_srl,$site_srl=0) {
|
||||
$member_group = $this->getMemberGroups($member_srl,$site_srl);
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('member');
|
||||
if($config->group_image_mark!='Y'){
|
||||
return null;
|
||||
}
|
||||
$member_group = $this->getMemberGroups($member_srl,$site_srl);
|
||||
|
||||
$groups_info = $this->getGroups($site_srl);
|
||||
$image_mark = null;
|
||||
if(count($member_group) > 0 && is_array($member_group)){
|
||||
$group_srl = array_keys($member_group);
|
||||
$image_mark = $groups_info[$group_srl[0]]->image_mark;
|
||||
}
|
||||
if($image_mark){
|
||||
$groups_info = $this->getGroups($site_srl);
|
||||
$image_mark = null;
|
||||
if(count($member_group) > 0 && is_array($member_group)){
|
||||
$group_srl = array_keys($member_group);
|
||||
$image_mark = $groups_info[$group_srl[0]]->image_mark;
|
||||
}
|
||||
if($image_mark){
|
||||
list($width, $height, $type, $attrs) = getimagesize($image_mark);
|
||||
$info->width = $width;
|
||||
$info->height = $height;
|
||||
$info->src = $image_mark;
|
||||
return $info;
|
||||
|
||||
}else return false;
|
||||
}else return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue