mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 05:13:54 -07:00
Revert "Generate jumpbox files only if enabled (#764)"
This reverts commit ce9c3d9b47
.
This commit is contained in:
parent
4c725f6246
commit
0bc3903c9d
2 changed files with 8 additions and 14 deletions
|
@ -106,17 +106,15 @@ $this->store('cat_forums', $data);
|
||||||
//
|
//
|
||||||
// jumpbox
|
// jumpbox
|
||||||
//
|
//
|
||||||
if ($bb_cfg['show_jumpbox']) {
|
$data = array(
|
||||||
$data = array(
|
'guest' => get_forum_select('guest', 'f', null, null, null, 'id="jumpbox" onchange="window.location.href=\'viewforum.php?f=\'+this.value;"'),
|
||||||
'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;"'),
|
||||||
'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['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['user'], AJAX_HTML_DIR . '/jumpbox_user.html', false, true, true);
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// viewtopic_forum_select
|
// viewtopic_forum_select
|
||||||
|
|
|
@ -1004,11 +1004,7 @@ function get_userdata($u, $force_name = false, $allow_guest = false)
|
||||||
|
|
||||||
function make_jumpbox($selected = 0)
|
function make_jumpbox($selected = 0)
|
||||||
{
|
{
|
||||||
global $datastore, $template, $bb_cfg;
|
global $datastore, $template;
|
||||||
|
|
||||||
if (!$bb_cfg['show_jumpbox']) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$jumpbox = $datastore->get('jumpbox')) {
|
if (!$jumpbox = $datastore->get('jumpbox')) {
|
||||||
$datastore->update('jumpbox');
|
$datastore->update('jumpbox');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue