색상값을 항상 올바르게 출력하도록 수정

스킨에서 정상적인 타이틀 색상값을 반환하지 않았을 경우 #을 제거하도록 수정합니다.
This commit is contained in:
BOBODDO 2021-11-06 16:37:05 +09:00 committed by GitHub
parent 093fa43e37
commit a1093c975c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -909,7 +909,7 @@ class contentItem extends BaseObject
$attrs = array();
if($this->get('title_bold') == 'Y') $attrs[] = 'font-weight:bold';
if($this->get('title_color') && $this->get('title_color') != 'N') $attrs[] = 'color:#'.$this->get('title_color');
if($this->get('title_color') && $this->get('title_color') != 'N') $attrs[] = 'color:#' . ltrim($this->get('title_color'), '#');
if(count($attrs)) $title = sprintf("<span style=\"%s\">%s</span>", implode(';', $attrs), $title);