mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-19 21:03:54 -07:00
Generate jumpbox files only if enabled (#764)
This commit is contained in:
parent
788d7a8b1a
commit
ce9c3d9b47
2 changed files with 14 additions and 8 deletions
|
@ -1000,7 +1000,11 @@ function get_userdata($u, $force_name = false, $allow_guest = false)
|
|||
|
||||
function make_jumpbox($selected = 0)
|
||||
{
|
||||
global $datastore, $template;
|
||||
global $datastore, $template, $bb_cfg;
|
||||
|
||||
if (!$bb_cfg['show_jumpbox']) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$jumpbox = $datastore->get('jumpbox')) {
|
||||
$datastore->update('jumpbox');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue