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:
@@ -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']:
|
||||
|
Reference in New Issue
Block a user