mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Show set/unset downloaded actions in log actions (#858)
This commit is contained in:
parent
da08532898
commit
fe742de211
4 changed files with 22 additions and 7 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue