From 4cb447f5bf8842a5203f44c5cec5900a25d01290 Mon Sep 17 00:00:00 2001 From: conory Date: Thu, 25 Oct 2018 20:03:17 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9C=B4=EC=A7=80=ED=86=B5=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EB=8C=93=EA=B8=80=20=EB=B3=B5=EC=9B=90=EC=8B=9C=20=ED=98=84?= =?UTF-8?q?=EC=9E=AC=20=EB=82=A0=EC=A7=9C=EB=A1=9C=20=EC=9E=91=EC=84=B1?= =?UTF-8?q?=EB=82=A0=EC=A7=9C=EA=B0=80=20=EB=B3=B5=EC=9B=90=EB=90=98?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/comment/comment.admin.controller.php | 21 +++----------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/modules/comment/comment.admin.controller.php b/modules/comment/comment.admin.controller.php index 183746461..171ba6708 100644 --- a/modules/comment/comment.admin.controller.php +++ b/modules/comment/comment.admin.controller.php @@ -425,33 +425,18 @@ class commentAdminController extends comment { $originObject = (object) $originObject; } - - $obj = new stdClass(); - $obj->document_srl = $originObject->document_srl; - $obj->comment_srl = $originObject->comment_srl; - $obj->parent_srl = $originObject->parent_srl; - $obj->content = $originObject->content; - $obj->password = $originObject->password; - $obj->nick_name = $originObject->nick_name; - $obj->member_srl = $originObject->member_srl; - $obj->email_address = $originObject->email_address; - $obj->homepage = $originObject->homepage; - $obj->is_secret = $originObject->is_secret; - $obj->notify_message = $originObject->notify_message; - $obj->module_srl = $originObject->module_srl; - + $oCommentController = getController('comment'); $oCommentModel = getModel('comment'); $oComment = $oCommentModel->getComment($originObject->comment_srl); - if($oComment->isExists()) { - $output = $oCommentController->updateCommentByRestore($obj); + $output = $oCommentController->updateCommentByRestore($originObject); } else { - $output = $oCommentController->insertComment($obj, true); + $output = $oCommentController->insertComment($originObject, true); } return $output;