Merge pull request #1822 from BOBODDO/develop

컨텐츠 위젯 및 comment 모듈 버그 수정
This commit is contained in:
Kijin Sung 2021-12-09 23:16:26 +09:00 committed by GitHub
commit 12e8cc4510
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -967,7 +967,7 @@ class commentController extends comment
}
// call a trigger (after)
ModuleHandler::triggerCall('comment.deleteComment', 'after', $obj);
ModuleHandler::triggerCall('comment.deleteComment', 'after', $comment);
// update the number of comments
$comment_count = CommentModel::getCommentCount($obj->document_srl);

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);