mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update torrent_show_dl_list.php
This commit is contained in:
parent
86d8df8c74
commit
380ea02bfb
@ -85,7 +85,7 @@ if ($show_dl_list)
|
||||
}
|
||||
}
|
||||
|
||||
$dl_count_mode_cnt = 0;
|
||||
$dl_count_mode_cnt = $dl_completed_count = 0;
|
||||
foreach ($dl_status_css as $i => $desc)
|
||||
{
|
||||
if ($i == DL_STATUS_RELEASER)
|
||||
@ -121,6 +121,11 @@ if ($show_dl_list)
|
||||
));
|
||||
}
|
||||
}
|
||||
// Отображаем "Список скачавших: Нет" если нет ни одного статуса DL_STATUS_COMPLETE
|
||||
if ($dl_completed_count == 0)
|
||||
{
|
||||
$template->assign_block_vars('dl_list_none', array());
|
||||
}
|
||||
$template->assign_vars(array('HIDE_DL_COUNT_EMPTY' => (bool)($count_mode && $dl_count_mode_cnt == 0)));
|
||||
}
|
||||
elseif ($bb_cfg['bt_show_dl_list_buttons'] && $have_dl_buttons_enabled)
|
||||
|
Loading…
Reference in New Issue
Block a user