Generate jumpbox files only if enabled (#764)

This commit is contained in:
Roman Kelesidis 2023-06-04 10:21:27 +07:00 committed by GitHub
commit ce9c3d9b47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 8 deletions

View file

@ -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');