mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Show pin & unpin actions in log actions (#857)
This commit is contained in:
parent
6e1d7c3538
commit
da08532898
4 changed files with 32 additions and 4 deletions
22
modcp.php
22
modcp.php
|
@ -709,6 +709,17 @@ switch ($mode) {
|
|||
WHERE topic_id IN($topic_csv)
|
||||
");
|
||||
|
||||
// Log action
|
||||
$type = ($pin) ? 'mod_post_pin' : 'mod_post_unpin';
|
||||
|
||||
foreach ($log_topics as $topic_id => $topic_title) {
|
||||
$log_action->mod($type, array(
|
||||
'forum_id' => $forum_id,
|
||||
'topic_id' => $topic_id,
|
||||
'topic_title' => $topic_title,
|
||||
));
|
||||
}
|
||||
|
||||
$msg = ($pin) ? $lang['POST_PINNED'] : $lang['POST_UNPINNED'];
|
||||
bb_die(return_msg_mcp($msg));
|
||||
} elseif ($topic_id) {
|
||||
|
@ -739,6 +750,17 @@ switch ($mode) {
|
|||
WHERE topic_id IN($topic_csv)
|
||||
");
|
||||
|
||||
// Log action
|
||||
$type = ($pin) ? 'mod_post_pin' : 'mod_post_unpin';
|
||||
|
||||
foreach ($log_topics as $topic_id => $topic_title) {
|
||||
$log_action->mod($type, array(
|
||||
'forum_id' => $forum_id,
|
||||
'topic_id' => $topic_id,
|
||||
'topic_title' => $topic_title,
|
||||
));
|
||||
}
|
||||
|
||||
$msg = ($pin) ? $lang['POST_PINNED'] : $lang['POST_UNPINNED'];
|
||||
bb_die(return_msg_mcp($msg));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue