mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Calling make_jumpbox() where it needed (#1091)
This commit is contained in:
parent
2119dfea13
commit
47a776c31d
4 changed files with 7 additions and 4 deletions
|
@ -1237,7 +1237,7 @@ function get_user_torrent_client(string $peerId): mixed
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($bestMatch)) {
|
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;
|
return $peerId;
|
||||||
|
|
|
@ -56,9 +56,6 @@ if (defined('SHOW_ONLINE') && SHOW_ONLINE) {
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make jumpbox
|
|
||||||
make_jumpbox();
|
|
||||||
|
|
||||||
// Info about new private messages
|
// Info about new private messages
|
||||||
$icon_pm = $images['pm_no_new_msg'];
|
$icon_pm = $images['pm_no_new_msg'];
|
||||||
$pm_info = $lang['NO_NEW_PM'];
|
$pm_info = $lang['NO_NEW_PM'];
|
||||||
|
|
|
@ -51,6 +51,9 @@ if (!$forum_id or !$forum_data = @$forums['forum'][$forum_id]) {
|
||||||
bb_die($lang['FORUM_NOT_EXIST']);
|
bb_die($lang['FORUM_NOT_EXIST']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make jumpbox
|
||||||
|
make_jumpbox();
|
||||||
|
|
||||||
// Only new
|
// Only new
|
||||||
$only_new = $user->opt_js['only_new'];
|
$only_new = $user->opt_js['only_new'];
|
||||||
$only_new_sql = '';
|
$only_new_sql = '';
|
||||||
|
|
|
@ -218,6 +218,9 @@ $template->assign_vars([
|
||||||
unset($forums);
|
unset($forums);
|
||||||
$datastore->rm('cat_forums');
|
$datastore->rm('cat_forums');
|
||||||
|
|
||||||
|
// Make jumpbox
|
||||||
|
make_jumpbox();
|
||||||
|
|
||||||
if ($post_id && !empty($t_data['prev_posts'])) {
|
if ($post_id && !empty($t_data['prev_posts'])) {
|
||||||
$start = floor(($t_data['prev_posts'] - 1) / $posts_per_page) * $posts_per_page;
|
$start = floor(($t_data['prev_posts'] - 1) / $posts_per_page) * $posts_per_page;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue