mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
Add option to control taking points when a post is deleted
This commit is contained in:
parent
72577ce6bb
commit
0a9d34c37f
5 changed files with 49 additions and 16 deletions
|
|
@ -67,6 +67,11 @@ class pointAdminController extends point
|
|||
// Specify notice exceptions
|
||||
$config->read_document_except_notice = ($args->read_document_except_notice === 'Y');
|
||||
$config->read_document_author_except_notice = ($args->read_document_author_except_notice === 'Y');
|
||||
|
||||
// Specify revert on delete
|
||||
$config->insert_document_revert_on_delete = ($args->insert_document_revert_on_delete === 'Y');
|
||||
$config->insert_comment_revert_on_delete = ($args->insert_comment_revert_on_delete === 'Y');
|
||||
$config->upload_file_revert_on_delete = ($args->upload_file_revert_on_delete === 'Y');
|
||||
|
||||
// Specify time limits
|
||||
$config->insert_comment_limit = $config->no_point_date = (int)$args->insert_comment_limit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue