From 4d2211258265afe8e8e95e568f73fc1c63b4aea1 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 4 Nov 2016 22:16:16 +0900 Subject: [PATCH] Fix #629 typo in configuration name 'only_commnet' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 오타 설정이 저장된 사이트에 영향을 주지 않기 위해 문자열 그대로 비교하지 않고 라이믹스 내장 starts_with() 함수로 앞부분만 비교하도록 변경함. --- modules/board/board.controller.php | 2 +- modules/board/tpl/board_insert.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/board/board.controller.php b/modules/board/board.controller.php index 21bd64106..2561a0d09 100644 --- a/modules/board/board.controller.php +++ b/modules/board/board.controller.php @@ -527,7 +527,7 @@ class boardController extends board $comment->status = 7; $output = $oCommentController->updateCommentByDelete($comment, $this->grant->manager); } - elseif($this->module_info->comment_delete_message === 'only_commnet' && $instant_delete != 'Y') + elseif(starts_with('only_comm', $this->module_info->comment_delete_message) && $instant_delete != 'Y') { $childs = $oCommentModel->getChildComments($comment_srl); if(count($childs) > 0) diff --git a/modules/board/tpl/board_insert.html b/modules/board/tpl/board_insert.html index 9d6c5acf4..f4ab4f5f5 100644 --- a/modules/board/tpl/board_insert.html +++ b/modules/board/tpl/board_insert.html @@ -280,7 +280,7 @@

{$lang->about_comment_delete_message}