mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-21 08:00:46 +01:00
Merge pull request #4778 from marc1706/ticket/15139
[ticket/15139] Assigned 'topics_per_page' before template included
This commit is contained in:
commit
3bf133c96c
@ -146,6 +146,13 @@ else
|
||||
}
|
||||
}
|
||||
|
||||
// Is a forum specific topic count required?
|
||||
if ($forum_data['forum_topics_per_page'])
|
||||
{
|
||||
$config['topics_per_page'] = $forum_data['forum_topics_per_page'];
|
||||
}
|
||||
|
||||
/* @var $phpbb_content_visibility \phpbb\content_visibility */
|
||||
$phpbb_content_visibility = $phpbb_container->get('content.visibility');
|
||||
|
||||
// Dump out the page header and load viewforum template
|
||||
@ -209,12 +216,6 @@ if ($mark_read == 'topics')
|
||||
trigger_error($user->lang['TOPICS_MARKED'] . '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], '<a href="' . $redirect_url . '">', '</a>'));
|
||||
}
|
||||
|
||||
// Is a forum specific topic count required?
|
||||
if ($forum_data['forum_topics_per_page'])
|
||||
{
|
||||
$config['topics_per_page'] = $forum_data['forum_topics_per_page'];
|
||||
}
|
||||
|
||||
// Do the forum Prune thang - cron type job ...
|
||||
if (!$config['use_system_cron'])
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user