From 8cd407cf08a80c633101916c43c8bf18b41a88ee Mon Sep 17 00:00:00 2001 From: bnu Date: Fri, 12 Jun 2009 10:08:23 +0000 Subject: [PATCH] =?UTF-8?q?#18069516=20*=20=EA=B8=80=20=EC=9E=91=EC=84=B1?= =?UTF-8?q?=EC=9E=90=EC=97=90=EA=B2=8C=20=EB=B9=84=EB=B0=80=EB=8C=93?= =?UTF-8?q?=EA=B8=80=EC=9D=98=20=EC=B2=A8=EB=B6=80=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=EC=9D=B4=20=EB=B3=B4=EC=9D=B4=EC=A7=80=20=EC=95=8A=EB=8A=94=20?= =?UTF-8?q?=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 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6529 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/comment/comment.item.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/comment/comment.item.php b/modules/comment/comment.item.php index 8c3b599c0..9cc124986 100644 --- a/modules/comment/comment.item.php +++ b/modules/comment/comment.item.php @@ -204,8 +204,8 @@ function getSummary($str_size = 50, $tail = '...') { $content = $this->getContent(false, false); - // 줄바꿈이 있을 때, 공백문자 삽입 - $content = preg_replace('!([\s]*)+!is', ' ', $content); + // 줄바꿈이 있을 때, 공백문자 삽입 + $content = preg_replace('!([\s]*)+!is', ' ', $content); //

, , 등의 태그를 공백 문자로 치환 $content = str_replace(array('

', '', ''), ' ', $content); @@ -216,8 +216,8 @@ // < , > , " 를 치환 $content = str_replace(array('<','>','"',' '), array('<','>','"',' '), $content); - // 연속된 공백문자 삭제 - $content = preg_replace('/ ( +)/is', ' ', $content); + // 연속된 공백문자 삭제 + $content = preg_replace('/ ( +)/is', ' ', $content); // 문자열을 자름 $content = trim(cut_str($content, $str_size, $tail)); @@ -276,12 +276,12 @@ } function hasUploadedFiles() { - if($this->isSecret() && !$this->isGranted()) return false; + if(($this->isSecret() && !$this->isAccessible()) && !$this->isGranted()) return false; return $this->get('uploaded_count')? true : false; } function getUploadedFiles() { - if($this->isSecret() && !$this->isGranted()) return; + if(($this->isSecret() && !$this->isAccessible()) && !$this->isGranted()) return; if(!$this->get('uploaded_count')) return; $oFileModel = &getModel('file');