From a1093c975c5f36a74bbb6b3ca08c6c2472c84287 Mon Sep 17 00:00:00 2001
From: BOBODDO <73145447+BOBODDO@users.noreply.github.com>
Date: Sat, 6 Nov 2021 16:37:05 +0900
Subject: [PATCH 1/2] =?UTF-8?q?=EC=83=89=EC=83=81=EA=B0=92=EC=9D=84=20?=
=?UTF-8?q?=ED=95=AD=EC=83=81=20=EC=98=AC=EB=B0=94=EB=A5=B4=EA=B2=8C=20?=
=?UTF-8?q?=EC=B6=9C=EB=A0=A5=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98?=
=?UTF-8?q?=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
스킨에서 정상적인 타이틀 색상값을 반환하지 않았을 경우 #을 제거하도록 수정합니다.
---
widgets/content/content.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
From c6ef2118675bac5e2e8fe90f7acf838dace1a076 Mon Sep 17 00:00:00 2001
From: BOBODDO
Date: Fri, 12 Nov 2021 22:46:03 +0900
Subject: [PATCH 2/2] =?UTF-8?q?=EB=8C=93=EA=B8=80=20=EC=9E=90=EB=A6=AC?=
=?UTF-8?q?=EB=82=A8=EA=B9=80=20=EA=B8=B0=EB=8A=A5=20=EC=82=AC=EC=9A=A9=20?=
=?UTF-8?q?=EC=8B=9C=20=EB=8C=93=EA=B8=80=20=EC=82=AD=EC=A0=9C=20=ED=8A=B8?=
=?UTF-8?q?=EB=A6=AC=EA=B1=B0=20=EC=9E=91=EB=8F=99=20=EC=95=88=ED=95=98?=
=?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
ModuleHandler::triggerCall('comment.deleteComment', 'after', $obj); 을 ModuleHandler::triggerCall('comment.deleteComment', 'after', $comment); 로 수정해야합니다.
updateCommentByDelete 함수에서 받아오는 $obj 값을 그대로 사용해서 트리거로 전달하면 안되며, $comment = getModel('comment')->getComment($obj->comment_srl); 을 통해 저장한 $comment 값을 넘겨주어야 합니다.
---
modules/comment/comment.controller.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/comment/comment.controller.php b/modules/comment/comment.controller.php
index a1534b212..a058a8b40 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);