Unique topic page title (#105)

torrentpier/torrentpier#441
This commit is contained in:
Roman Kelesidis 2023-04-01 12:48:14 +07:00 committed by GitHub
parent c3a320f4dc
commit cec9c3ba61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 1 deletions

View File

@ -54,6 +54,7 @@ $lang['SELECT_ACTION'] = 'Select action';
$lang['NEXT_PAGE'] = 'Next';
$lang['PREVIOUS_PAGE'] = 'Previous';
$lang['SHORT_PAGE'] = 'page';
$lang['GOTO_PAGE'] = 'Go to page';
$lang['GOTO_SHORT'] = 'Page';
$lang['JOINED'] = 'Joined';

View File

@ -54,6 +54,7 @@ $lang['SELECT_ACTION'] = 'Выберите действие';
$lang['NEXT_PAGE'] = 'След.';
$lang['PREVIOUS_PAGE'] = 'Пред.';
$lang['SHORT_PAGE'] = 'стр.';
$lang['GOTO_PAGE'] = 'Страницы';
$lang['GOTO_SHORT'] = 'Стр.';
$lang['JOINED'] = 'Зарегистрирован';

View File

@ -54,6 +54,7 @@ $lang['SELECT_ACTION'] = 'Виберіть дію';
$lang['NEXT_PAGE'] = 'Наступ.';
$lang['PREVIOUS_PAGE'] = 'Попер.';
$lang['SHORT_PAGE'] = 'стор.';
$lang['GOTO_PAGE'] = 'Сторінки';
$lang['GOTO_SHORT'] = 'Стор.';
$lang['JOINED'] = 'Зареєстрований';

View File

@ -537,6 +537,8 @@ $poll_time_expired = ($t_data['topic_time'] < TIMENOW - $bb_cfg['poll_max_days']
$can_manage_poll = ($t_data['topic_poster'] == $userdata['user_id'] || $is_auth['auth_mod']);
$can_add_poll = ($can_manage_poll && !$topic_has_poll && !$poll_time_expired && !$start);
$page_title = ((int)($start / $posts_per_page) === 0) ? $topic_title : $topic_title . ' - ' . $lang['SHORT_PAGE'] . ' ' . (floor($start / $posts_per_page) + 1);
//
// Send vars to template
//
@ -549,7 +551,7 @@ $template->assign_vars(array(
'FORUM_ID' => $forum_id,
'FORUM_NAME' => htmlCHR($forum_name),
'TOPIC_ID' => $topic_id,
'PAGE_TITLE' => $topic_title,
'PAGE_TITLE' => $page_title,
'TOPIC_TITLE' => wbr($topic_title),
'PORNO_FORUM' => $t_data['allow_porno_topic'],
'REPLY_IMG' => $reply_img,