1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +02:00

Fixes #3778 - SEF URL issue on custom page comments. Also introduces pageHelper class with use added to e_related, e_search and e_sitelink.

This commit is contained in:
Cameron
2022-03-11 12:23:31 -08:00
parent d2f311e511
commit 7fd6fdf478
7 changed files with 104 additions and 112 deletions

View File

@@ -1566,7 +1566,9 @@ class comment
{
$row2 = $sql2->fetch();
$route = ($row2['page_chapter'] == 0) ? "page/view/other" : "page/view/index"; // Determine if page belongs to book/chapter.
$row2 = pageHelper::addSefFields($row2);
$route = empty($row2['page_chapter']) ? "page/view/other" : "page/view/index"; // Determine if page belongs to book/chapter.
$ret['comment_type'] = COMLAN_TYPE_PAGE;
$ret['comment_title'] = $ret['comment_subject'] ? $ret['comment_subject']: