diff --git a/modules/trash/lang/ko.php b/modules/trash/lang/ko.php index e1878e448..e0fc7a2c5 100644 --- a/modules/trash/lang/ko.php +++ b/modules/trash/lang/ko.php @@ -19,3 +19,9 @@ $lang->trasher = '삭제자'; $lang->origin_info = '원문 정보'; $lang->delete_info = '삭제 정보'; $lang->cmd_restore = '복원'; +$lang->cmd_trash_setting = '휴지통 설정'; +$lang->cmd_trash_list = '휴지통 목록'; +$lang->document_force_to_move = '삭제시 휴지통으로 강제이동'; +$lang->force_to_move = '휴지통으로 강제이동'; +$lang->do_not_forceto_move = '강제이동을 하지않음'; +$lang->about_document_force_to_move = '게시글을 삭제시 휴지통으로 강제이동할지 않할지를 선택하는 옵션입니다.'; diff --git a/modules/trash/tpl/config.html b/modules/trash/tpl/config.html index 51187a017..574ae1cc0 100644 --- a/modules/trash/tpl/config.html +++ b/modules/trash/tpl/config.html @@ -1 +1,25 @@ + +
+ + +
+
+ +
+ + +

{$lang->about_document_force_to_move}

+
+
+
+
+
+ +
+
+
diff --git a/modules/trash/tpl/header.html b/modules/trash/tpl/header.html index bd7fd3cbc..020b6e302 100644 --- a/modules/trash/tpl/header.html +++ b/modules/trash/tpl/header.html @@ -1,2 +1,16 @@ -

{$lang->cmd_trash} {$lang->cmd_management}

+
+

{$lang->cmd_trash}

+
+ + + +
+

{$XE_VALIDATOR_MESSAGE}

+
+ diff --git a/modules/trash/tpl/trash_list.html b/modules/trash/tpl/trash_list.html index 0e027b0ad..0807e73aa 100644 --- a/modules/trash/tpl/trash_list.html +++ b/modules/trash/tpl/trash_list.html @@ -3,12 +3,8 @@ var confirm_restore_msg = '{$lang->confirm_restore}'; var no_text_comment = '{$lang->no_text_comment}'; -
-

{$lang->trash} {$lang->help}

-
-
-

{$XE_VALIDATOR_MESSAGE}

-
+ +
diff --git a/modules/trash/trash.admin.controller.php b/modules/trash/trash.admin.controller.php index 9789e3e65..6eab3cc60 100644 --- a/modules/trash/trash.admin.controller.php +++ b/modules/trash/trash.admin.controller.php @@ -235,10 +235,17 @@ class trashAdminController extends trash { $oTrashModel = getModel('trash'); $config = $oTrashModel->getConfig(); + $oModuleController = getController('module'); $obj = Context::getRequestVars(); - $this->setMessage('success_updated'); + $config->trash_use = $obj->trash_use; + + $output = $oModuleController->updateModuleConfig('trash', $config); + if(!$output->toBool()) + { + $this->setMessage('success_updated'); + } $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispTrashAdminConfig'); $this->setRedirectUrl($returnUrl);