--- /src/main/java/net/jforum/view/forum/ForumAction.java
+++ /src/main/java/net/jforum/view/forum/ForumAction.java
@@ -87,6 +87,7 @@
this.context.put("allCategories", ForumCommon.getAllCategoriesAndForums(true));
this.context.put("topicsPerPage", Integer.valueOf(SystemGlobals.getIntValue(ConfigKeys.TOPICS_PER_PAGE)));
+ this.context.put("postsPerPage", Integer.valueOf(SystemGlobals.getIntValue(ConfigKeys.POSTS_PER_PAGE)));
this.context.put("rssEnabled", SystemGlobals.getBoolValue(ConfigKeys.RSS_ENABLED));
this.context.put("totalMessages", Integer.valueOf(ForumRepository.getTotalMessages()));
--- /src/main/resources/templates/default/forum_list.htm
+++ /src/main/resources/templates/default/forum_list.htm
@@ -79,8 +79,8 @@
<#if (lpi.userId > 0)><a href="${JForumContext.encodeURL("/user/profile/${lpi.userId}")}"></#if>${lpi.username}</a><br />
<#assign startPage = ""/>
- <#if (lpi.topicReplies + 1 > topicsPerPage)>
- <#assign startPage = ((lpi.topicReplies / topicsPerPage)?int * topicsPerPage) +"/"/>
+ <#if (lpi.topicReplies + 1 > postsPerPage)>
+ <#assign startPage = ((lpi.topicReplies / postsPerPage)?int * postsPerPage) +"/"/>
</#if>
<#assign url = JForumContext.encodeURL("/posts/list/${startPage}${lpi.topicId}") + "#p" + lpi.postId/>
Fix checked in. Thanks for the report!