mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
#3778 - Add SEF URL configuration to 'pages' in comment_menu (WIP)
WIP - one URL configuration not working yet. See notes in issue #3778
This commit is contained in:
@@ -1562,10 +1562,17 @@ class comment
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'page': // Custom Page
|
case 'page': // Custom Page
|
||||||
$ret['comment_type'] = COMLAN_TYPE_PAGE;
|
if ($sql2->select("page", "*", "page_id='".$row['comment_item_id']."' AND page_class REGEXP '".e_CLASS_REGEXP."' "))
|
||||||
$ret['comment_title'] = $ret['comment_subject'] ? $ret['comment_subject']:
|
{
|
||||||
$ret['comment_comment'];
|
$row2 = $sql2->fetch();
|
||||||
$ret['comment_url'] = e_HTTP."page.php?".$row['comment_item_id'];
|
|
||||||
|
$route = ($row2['page_chapter'] == 0) ? "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']:
|
||||||
|
$ret['comment_comment'];
|
||||||
|
$ret['comment_url'] = e107::getUrl()->create($route, $row2); // e_HTTP."page.php?".$row['comment_item_id'];
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (isset($e_comment[$row['comment_type']]) && is_array($e_comment[$row['comment_type']]))
|
if (isset($e_comment[$row['comment_type']]) && is_array($e_comment[$row['comment_type']]))
|
||||||
|
Reference in New Issue
Block a user