From 47a776c31d34746f744ac920fc585715548856cb Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 13 Nov 2023 15:59:30 +0700 Subject: [PATCH] Calling make_jumpbox() where it needed (#1091) --- library/includes/functions.php | 2 +- library/includes/page_header.php | 3 --- viewforum.php | 3 +++ viewtopic.php | 3 +++ 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/library/includes/functions.php b/library/includes/functions.php index b9f7fc91f..f70ff74fb 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -1237,7 +1237,7 @@ function get_user_torrent_client(string $peerId): mixed } if (!empty($bestMatch)) { - return '' . $bestMatch . ''; + return '' . $bestMatch . ''; } return $peerId; diff --git a/library/includes/page_header.php b/library/includes/page_header.php index 3b07d66c8..46be0facd 100644 --- a/library/includes/page_header.php +++ b/library/includes/page_header.php @@ -56,9 +56,6 @@ if (defined('SHOW_ONLINE') && SHOW_ONLINE) { ]); } -// Make jumpbox -make_jumpbox(); - // Info about new private messages $icon_pm = $images['pm_no_new_msg']; $pm_info = $lang['NO_NEW_PM']; diff --git a/viewforum.php b/viewforum.php index ae0f605d8..0aa75349d 100644 --- a/viewforum.php +++ b/viewforum.php @@ -51,6 +51,9 @@ if (!$forum_id or !$forum_data = @$forums['forum'][$forum_id]) { bb_die($lang['FORUM_NOT_EXIST']); } +// Make jumpbox +make_jumpbox(); + // Only new $only_new = $user->opt_js['only_new']; $only_new_sql = ''; diff --git a/viewtopic.php b/viewtopic.php index 4d9d5ce5d..4454754dc 100644 --- a/viewtopic.php +++ b/viewtopic.php @@ -218,6 +218,9 @@ $template->assign_vars([ unset($forums); $datastore->rm('cat_forums'); +// Make jumpbox +make_jumpbox(); + if ($post_id && !empty($t_data['prev_posts'])) { $start = floor(($t_data['prev_posts'] - 1) / $posts_per_page) * $posts_per_page; }