mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
프로필 사진의 기본사이즈 값 불일치 이슈 해결
This commit is contained in:
parent
c493dd6a98
commit
f52ca4a2bb
1 changed files with 3 additions and 4 deletions
|
|
@ -699,13 +699,12 @@ class memberController extends member
|
|||
// Check uploaded file
|
||||
if(!checkUploadedFile($target_file)) return;
|
||||
|
||||
$oModuleModel = getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('member');
|
||||
$oMemberModel = getModel('member');
|
||||
$config = $oMemberModel->getMemberConfig();
|
||||
|
||||
// Get an image size
|
||||
$max_width = $config->profile_image_max_width;
|
||||
if(!$max_width) $max_width = "90";
|
||||
$max_height = $config->profile_image_max_height;
|
||||
if(!$max_height) $max_height = "20";
|
||||
// Get a target path to save
|
||||
$target_path = sprintf('files/member_extra_info/profile_image/%s', getNumberingPath($member_srl));
|
||||
FileHandler::makeDir($target_path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue