mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
Updated
This commit is contained in:
parent
0c15aaec17
commit
9f05e49d01
2 changed files with 2 additions and 5 deletions
|
@ -83,7 +83,7 @@ if ($bb_cfg['ratio_null_enabled'] && $btu = get_bt_userdata($profiledata['user_i
|
||||||
if ($banInfo = getBanInfo((int)$profiledata['user_id'])) {
|
if ($banInfo = getBanInfo((int)$profiledata['user_id'])) {
|
||||||
$template->assign_block_vars('ban', [
|
$template->assign_block_vars('ban', [
|
||||||
'IS_BANNED' => true,
|
'IS_BANNED' => true,
|
||||||
'BAN_REASON' => $banInfo['ban_reason']
|
'BAN_REASON' => IS_ADMIN ? $banInfo['ban_reason'] : '',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -738,10 +738,7 @@ for ($i = 0; $i < $total_posts; $i++) {
|
||||||
|
|
||||||
// Ban information
|
// Ban information
|
||||||
if ($banInfo = getBanInfo((int)$poster_id)) {
|
if ($banInfo = getBanInfo((int)$poster_id)) {
|
||||||
$template->assign_block_vars('postrow.ban', [
|
$template->assign_block_vars('postrow.ban', ['IS_BANNED' => true]);
|
||||||
'IS_BANNED' => true,
|
|
||||||
'BAN_REASON' => $banInfo['ban_reason']
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($postrow[$i]['post_attachment']) && $is_auth['auth_download'] && function_exists('display_post_attachments')) {
|
if (isset($postrow[$i]['post_attachment']) && $is_auth['auth_download'] && function_exists('display_post_attachments')) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue