This commit is contained in:
Roman Kelesidis 2024-01-27 23:30:43 +07:00
parent 7d87a6f57a
commit f5887d5758
2 changed files with 4 additions and 3 deletions

View File

@ -14,8 +14,9 @@ $template->assign_vars(array('DL_BUTTONS' => false));
$count_mode = ($bb_cfg['bt_dl_list_only_count'] && !(@$_GET['dl'] === 'names')); $count_mode = ($bb_cfg['bt_dl_list_only_count'] && !(@$_GET['dl'] === 'names'));
$have_dl_buttons_enabled = ($bb_cfg['bt_show_dl_but_will'] || $bb_cfg['bt_show_dl_but_down'] || $bb_cfg['bt_show_dl_but_compl'] || $bb_cfg['bt_show_dl_but_cancel']);
$dl_topic = ($t_data['topic_dl_type'] == TOPIC_DL_TYPE_DL && !($bb_cfg['bt_dl_list_only_1st_page'] && $start)); $dl_topic = ($t_data['topic_dl_type'] == TOPIC_DL_TYPE_DL && !($bb_cfg['bt_dl_list_only_1st_page'] && $start));
$show_dl_list = ($dl_topic && ($bb_cfg['bt_show_dl_list'] || ($bb_cfg['allow_dl_list_names_mode'] && @$_GET['dl'] === 'names'))); $show_dl_list = ($dl_topic && $bb_cfg['bt_show_dl_list_buttons'] && $have_dl_buttons_enabled && ($bb_cfg['bt_show_dl_list'] || ($bb_cfg['allow_dl_list_names_mode'] && @$_GET['dl'] === 'names')));
$show_dl_buttons = (!IS_GUEST && $dl_topic && $bb_cfg['bt_show_dl_list_buttons']); $show_dl_buttons = (!IS_GUEST && $dl_topic && $bb_cfg['bt_show_dl_list_buttons']);
// link to clear DL-List // link to clear DL-List

View File

@ -26,8 +26,8 @@ $(document).ready(function(){
<!-- END users_row --> <!-- END users_row -->
<!-- END dl_users --> <!-- END dl_users -->
<!-- IF not HIDE_DL_COUNT_EMPTY -->
<!-- BEGIN dl_counts --> <!-- BEGIN dl_counts -->
<!-- IF not HIDE_DL_COUNT_EMPTY -->
<tr> <tr>
<td colspan="2"> <td colspan="2">
<table class="borderless bCenter mrg_4"> <table class="borderless bCenter mrg_4">
@ -40,8 +40,8 @@ $(document).ready(function(){
</table> </table>
</td> </td>
</tr> </tr>
<!-- END dl_counts -->
<!-- ENDIF --> <!-- ENDIF -->
<!-- END dl_counts -->
<!-- IF SHOW_DL_LIST_TOR_INFO --> <!-- IF SHOW_DL_LIST_TOR_INFO -->
<tr> <tr>