mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -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
10
modcp.php
10
modcp.php
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue