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:
Roman Kelesidis 2024-12-02 01:22:58 +07:00 committed by GitHub
commit 6f59d5fea6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 47 additions and 31 deletions

View file

@ -698,7 +698,7 @@ switch ($mode) {
case 'post_pin':
case 'post_unpin':
$pin = ($mode == 'post_pin');
$new_topic_status = ($pin) ? 1 : 0;
$new_topic_status = $pin ? 1 : 0;
if (count((array)$topic_csv)) {
$sql = "
@ -728,7 +728,7 @@ switch ($mode) {
");
// Log action
$type = ($pin) ? 'mod_post_pin' : 'mod_post_unpin';
$type = $pin ? 'mod_post_pin' : 'mod_post_unpin';
foreach ($log_topics as $topic_id => $topic_title) {
$log_action->mod($type, [
@ -738,7 +738,7 @@ switch ($mode) {
]);
}
$msg = ($pin) ? $lang['POST_PINNED'] : $lang['POST_UNPINNED'];
$msg = $pin ? $lang['POST_PINNED'] : $lang['POST_UNPINNED'];
bb_die(return_msg_mcp($msg));
} elseif ($topic_id) {
$sql = "
@ -769,7 +769,7 @@ switch ($mode) {
");
// Log action
$type = ($pin) ? 'mod_post_pin' : 'mod_post_unpin';
$type = $pin ? 'mod_post_pin' : 'mod_post_unpin';
foreach ($log_topics as $topic_id => $topic_title) {
$log_action->mod($type, [
@ -779,7 +779,7 @@ switch ($mode) {
]);
}
$msg = ($pin) ? $lang['POST_PINNED'] : $lang['POST_UNPINNED'];
$msg = $pin ? $lang['POST_PINNED'] : $lang['POST_UNPINNED'];
bb_die(return_msg_mcp($msg));
}
break;