Show set/unset downloaded actions in log actions (#858)

This commit is contained in:
Roman Kelesidis 2023-08-22 00:32:06 +07:00 committed by GitHub
commit fe742de211
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 7 deletions

View file

@ -361,6 +361,15 @@ switch ($mode) {
clear_dl_list($topic_csv);
}
// Log action
$type = ($set_download) ? 'mod_topic_set_downloaded' : 'mod_topic_unset_downloaded';
$log_action->mod($type, array(
'forum_id' => $forum_id,
'topic_id' => $topic_id,
'topic_title' => get_topic_title($topic_id),
));
$msg = ($set_download) ? $lang['TOPICS_DOWN_SETS'] : $lang['TOPICS_DOWN_UNSETS'];
bb_die(return_msg_mcp($msg));