Skip to content
Permalink
Browse files

Update home.php

calculation of page number corrected
fixes #446
  • Loading branch information...
BenniGotchi committed Aug 4, 2019
1 parent 8a97373 commit d967486125c8c704856c8296e30d11dd2dbfec5a
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/news/plugins/home.php
@@ -25,7 +25,7 @@
if ($db->num_rows($query) > 0) {
while ($row = $db->fetch_array($query)) {
$page = floor(($row['comments']) / 20);
$page = floor(($row['comments'] - 1) / 20);
$smarty->assign('link', "index.php?mod=board&action=thread&tid={$row['tid']}&posts_page={$page}#pid{$row['pid']}");
$smarty->assign('link', "index.php?mod=news&action=comment&newsid={$row["newsid"]}&ms_page={$page}");

0 comments on commit d967486

Please sign in to comment.
You can’t perform that action at this time.