Calling make_jumpbox() where it needed (#1091)

This commit is contained in:
Roman Kelesidis 2023-11-13 15:59:30 +07:00 committed by GitHub
commit 47a776c31d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View file

@ -1237,7 +1237,7 @@ function get_user_torrent_client(string $peerId): mixed
}
if (!empty($bestMatch)) {
return '<img width="auto" height="auto" style="display:inline!important;vertical-align:middle" src="' . FULL_URL . 'styles/images/clients/'. $bestMatch . $iconExtension . '" alt="' . $bestMatch . '" title="' . $peerId . '">';
return '<img width="auto" height="auto" style="display:inline!important;vertical-align:middle" src="' . FULL_URL . 'styles/images/clients/' . $bestMatch . $iconExtension . '" alt="' . $bestMatch . '" title="' . $peerId . '">';
}
return $peerId;

View file

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

View file

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

View file

@ -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;
}