mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 12:49:55 +09:00
블로그의 댓글을 위지윅에디터가 아닌 일반 textarea로 변경
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1969 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
712d3a9dfd
commit
7acd1fc4df
6 changed files with 41 additions and 26 deletions
|
|
@ -108,6 +108,18 @@
|
|||
// comment_srl이 존재하는지 체크
|
||||
$comment = $oCommentModel->getComment($obj->comment_srl, $this->grant->manager);
|
||||
|
||||
// 줄바꾸임나 태그제거등의 작업
|
||||
$obj->content = nl2br(strip_tags($obj->content));
|
||||
|
||||
/**
|
||||
* 존재하는 댓글인지를 확인하여 존재 하지 않는 댓글이라면 신규로 등록하기 위해서 comment_srl의 sequence값을 받는다
|
||||
**/
|
||||
if(!$obj->comment_srl) {
|
||||
$obj->comment_srl = getNextSequence();
|
||||
} else {
|
||||
$comment = $oCommentModel->getComment($obj->comment_srl, $this->grant->manager);
|
||||
}
|
||||
|
||||
// comment_srl이 없을 경우 신규 입력
|
||||
if($comment->comment_srl != $obj->comment_srl) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue