한글 로고 등록 오류시 처리
한글로 로고를 등록할 때 URL Encoding 되어 있는 한글 파일명이 SuiteCRM에 전달되는 경우가 있다.
이 경우 아래와 같이 처리를 하면 된다.
$path = urldecode($path); #— 이 라인을 추가
if (!file_exists($path) || !is_file($path)) {
$path = urldecode($path); #— 이 라인을 추가
copy($path,’custom/’. SugarThemeRegistry::current()->getDefaultImagePath(). ‘/company_logo.png’);