From 6c91b1a552dee0671388f3f49d5dc43400f5c3b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Fri, 18 Dec 2015 11:09:33 +0100 Subject: [PATCH] Fixed: proper params for post URLs. URLs always pointed to the last page of topic, but the post was not always there. --- e107_plugins/forum/newforumposts_menu.php | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/e107_plugins/forum/newforumposts_menu.php b/e107_plugins/forum/newforumposts_menu.php index c654862c7..090d4c072 100755 --- a/e107_plugins/forum/newforumposts_menu.php +++ b/e107_plugins/forum/newforumposts_menu.php @@ -39,9 +39,12 @@ LEFT JOIN `#user` AS u ON u.user_id = p.post_user WHERE {$maxage} p.post_forum IN ({$forumList}) ORDER BY p.post_datestamp DESC LIMIT 0, ".$menu_pref['newforumposts_display']; +// Get forum plugin preferences. +$plugForumPrefs = e107::getPlugConfig('forum')->getPref(); +// New MySQL class instantiation to avoid overrides. +$db = new e_db_mysql(); - - +// TODO: cache menu. if($results = $sql->gen($qry)) { $text = "