diff --git a/modules/comment/comment.controller.php b/modules/comment/comment.controller.php index a8c37b6b9..ed23b3783 100644 --- a/modules/comment/comment.controller.php +++ b/modules/comment/comment.controller.php @@ -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); diff --git a/widgets/content/content.class.php b/widgets/content/content.class.php index a5acf9524..2627898e7 100644 --- a/widgets/content/content.class.php +++ b/widgets/content/content.class.php @@ -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("%s", implode(';', $attrs), $title);