1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 15:54:43 +02:00

e107::url() legacy query conflict fix. newforumposts_main BC 'scrolling' fix.

This commit is contained in:
Cameron
2017-12-12 10:58:41 -08:00
parent ca5f33655b
commit ea073afe9a
3 changed files with 30 additions and 2 deletions

View File

@@ -81,6 +81,7 @@ if(!class_exists('forum_newforumposts_menu'))
default:
$qry = "
SELECT t.thread_id, t.thread_name, t.thread_datestamp, t.thread_user, t.thread_views, t.thread_lastpost, t.thread_lastuser, t.thread_total_replies, t.thread_active,
MAX(p.post_id) AS post_id,
f.forum_id, f.forum_name, f.forum_class, f.forum_sef,
u.user_name as thread_user_username,
u.user_image as thread_user_userimage,
@@ -88,12 +89,14 @@ if(!class_exists('forum_newforumposts_menu'))
fp.forum_class, fp.forum_sef as forum_parent_sef,
lp.user_name AS thread_lastuser_username
FROM #forum_thread AS t
LEFT JOIN #forum_post AS p ON t.thread_id = p.post_thread
LEFT JOIN #user AS u ON t.thread_user = u.user_id
LEFT JOIN #user AS lp ON t.thread_lastuser = lp.user_id
LEFT JOIN #forum AS f ON f.forum_id = t.thread_forum_id
LEFT JOIN #forum AS fp ON f.forum_parent = fp.forum_id
WHERE f.forum_id = t.thread_forum_id AND f.forum_class IN (".USERCLASS_LIST.")
AND fp.forum_class IN (".USERCLASS_LIST.")
AND fp.forum_class IN (".USERCLASS_LIST.")
GROUP BY t.thread_id
ORDER BY t.thread_lastpost DESC LIMIT 0, ".vartrue($this->menuPref['display'],10);
}