aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorupstrocker <upstrocker@gmail.com>2017-03-23 12:03:33 +0300
committerMarc Alexander <admin@m-a-styles.de>2017-03-28 20:41:38 +0200
commitf991a99a14da4d7fc79df9429d6f0e5f6d0f8914 (patch)
tree603aedb7a9626a9fc02f242d844940bcbbc6a2d1 /phpBB/viewforum.php
parent827ded82b8110fd2c587d9d7c84731ee7215b166 (diff)
downloadforums-f991a99a14da4d7fc79df9429d6f0e5f6d0f8914.tar
forums-f991a99a14da4d7fc79df9429d6f0e5f6d0f8914.tar.gz
forums-f991a99a14da4d7fc79df9429d6f0e5f6d0f8914.tar.bz2
forums-f991a99a14da4d7fc79df9429d6f0e5f6d0f8914.tar.xz
forums-f991a99a14da4d7fc79df9429d6f0e5f6d0f8914.zip
[ticket/15139] Assigned 'topics_per_page' before template included
The element $config['topics_per_page'] was assigned a value after the template was included, which led to incorrect page number display in the header when pagination. Now this var is assigned the correct value before the template is included PHPBB3-15139
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 1938c25fed..5c51975150 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -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'])
{