diff --git a/library/includes/datastore/build_cat_forums.php b/library/includes/datastore/build_cat_forums.php index 0f52729bc..0df4353ff 100644 --- a/library/includes/datastore/build_cat_forums.php +++ b/library/includes/datastore/build_cat_forums.php @@ -106,17 +106,15 @@ $this->store('cat_forums', $data); // // jumpbox // -if ($bb_cfg['show_jumpbox']) { - $data = array( - 'guest' => get_forum_select('guest', 'f', null, null, null, 'id="jumpbox" onchange="window.location.href=\'viewforum.php?f=\'+this.value;"'), - 'user' => get_forum_select('user', 'f', null, null, null, 'id="jumpbox" onchange="window.location.href=\'viewforum.php?f=\'+this.value;"'), - ); +$data = array( + 'guest' => get_forum_select('guest', 'f', null, null, null, 'id="jumpbox" onchange="window.location.href=\'viewforum.php?f=\'+this.value;"'), + 'user' => get_forum_select('user', 'f', null, null, null, 'id="jumpbox" onchange="window.location.href=\'viewforum.php?f=\'+this.value;"'), +); - $this->store('jumpbox', $data); +$this->store('jumpbox', $data); - file_write($data['guest'], AJAX_HTML_DIR . '/jumpbox_guest.html', false, true, true); - file_write($data['user'], AJAX_HTML_DIR . '/jumpbox_user.html', false, true, true); -} +file_write($data['guest'], AJAX_HTML_DIR . '/jumpbox_guest.html', false, true, true); +file_write($data['user'], AJAX_HTML_DIR . '/jumpbox_user.html', false, true, true); // // viewtopic_forum_select diff --git a/library/includes/functions.php b/library/includes/functions.php index d0f7c9041..f4b63e76a 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -1004,11 +1004,7 @@ function get_userdata($u, $force_name = false, $allow_guest = false) function make_jumpbox($selected = 0) { - global $datastore, $template, $bb_cfg; - - if (!$bb_cfg['show_jumpbox']) { - return; - } + global $datastore, $template; if (!$jumpbox = $datastore->get('jumpbox')) { $datastore->update('jumpbox');