mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Show torrent type (gold / silver) changes in actions log (#1689)
* Minor improvements * Updated * Update mod_action.php * Update modcp.php * Update change_torrent.php * Updated * Update change_torrent.php * Update main.php * Updated * Update LogAction.php * Update LogAction.php * Update LogAction.php * Update main.php * Update change_torrent.php * Update change_torrent.php * Update change_torrent.php * Updated * Update CHANGELOG.md * Update change_torrent.php
This commit is contained in:
parent
58e6ffac7f
commit
6f59d5fea6
9 changed files with 47 additions and 31 deletions
|
@ -89,16 +89,15 @@ switch ($mode) {
|
|||
|
||||
// Log action
|
||||
$log_msg = sprintf($lang['TOR_STATUS_LOG_ACTION'], $bb_cfg['tor_icons'][$new_status] . ' <b> ' . $lang['TOR_STATUS_NAME'][$new_status] . '</b>', $bb_cfg['tor_icons'][$tor['tor_status']] . ' <b> ' . $lang['TOR_STATUS_NAME'][$tor['tor_status']] . '</b>');
|
||||
if ($comment) {
|
||||
if ($comment && $comment != $lang['COMMENT']) {
|
||||
$log_msg .= "<br>{$lang['COMMENT']}: <b>$comment</b>.";
|
||||
}
|
||||
$log_action->mod('mod_topic_change_tor_status', array(
|
||||
$log_action->mod('mod_topic_change_tor_status', [
|
||||
'forum_id' => $tor['forum_id'],
|
||||
'topic_id' => $tor['topic_id'],
|
||||
'topic_title' => $tor['topic_title'],
|
||||
'user_id' => $userdata['user_id'],
|
||||
'log_msg' => $log_msg . '<br>-------------',
|
||||
));
|
||||
]);
|
||||
|
||||
$this->response['status'] = $bb_cfg['tor_icons'][$new_status] . ' <b> ' . $lang['TOR_STATUS_NAME'][$new_status] . '</b> · ' . profile_url($userdata) . ' · <i>' . delta_time(TIMENOW) . $lang['TOR_BACK'] . '</i>';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue