mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 14:28:56 +00:00
[ticket/17004] Remove not needed if and topic_count
PHPBB3-17004
This commit is contained in:
parent
3f6abe056a
commit
015c038d92
1 changed files with 0 additions and 11 deletions
|
@ -111,7 +111,6 @@ class ucp_main
|
||||||
$topic_list[] = $row['topic_id'];
|
$topic_list[] = $row['topic_id'];
|
||||||
$rowset[$row['topic_id']] = $row;
|
$rowset[$row['topic_id']] = $row;
|
||||||
}
|
}
|
||||||
$topics_count = (int) $db->sql_fetchfield('topics_count');
|
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -162,16 +161,6 @@ class ucp_main
|
||||||
// Replies
|
// Replies
|
||||||
$replies = $phpbb_content_visibility->get_count('topic_posts', $row, $forum_id) - 1;
|
$replies = $phpbb_content_visibility->get_count('topic_posts', $row, $forum_id) - 1;
|
||||||
|
|
||||||
if ($topics_count)
|
|
||||||
{
|
|
||||||
$start = $pagination->validate_start($start, $config['topics_per_page'], $topics_count);
|
|
||||||
$pagination->generate_template_pagination($this->u_action, 'pagination', 'start', $topics_count, $config['topics_per_page'], $start);
|
|
||||||
|
|
||||||
$template->assign_vars(array(
|
|
||||||
'TOTAL_TOPICS' => $language->lang('VIEW_FORUM_TOPICS', (int) $topics_count),
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($row['topic_status'] == ITEM_LOCKED)
|
if ($row['topic_status'] == ITEM_LOCKED)
|
||||||
{
|
{
|
||||||
$folder_img .= '_locked';
|
$folder_img .= '_locked';
|
||||||
|
|
Loading…
Add table
Reference in a new issue