Skip to content
Permalink
Browse files

Merge pull request #447 from lansuite/fix-446-news-comments-not-shown

Fix page number calculation in /news/plugins/home.php
  • Loading branch information...
byte666 committed Aug 4, 2019
2 parents 8a97373 + d967486 commit f6807da91729d6ab1b59072eb09e85928bc33050
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 f6807da

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