From c6e2988e9677fe4dbbab6df65347bc25ab4f134c Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 9 Jan 2014 07:52:25 -0800 Subject: [PATCH] Generated page links now using SEF Urls for Page chapters. --- e107_plugins/page/e_sitelink.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/e107_plugins/page/e_sitelink.php b/e107_plugins/page/e_sitelink.php index d6bcaa033..3b8821b22 100644 --- a/e107_plugins/page/e_sitelink.php +++ b/e107_plugins/page/e_sitelink.php @@ -70,7 +70,7 @@ class page_sitelink // include plugin-folder in the name. { $sublinks[] = array( 'link_name' => $tp->toHtml($row['chapter_name'],'','TITLE'), - 'link_url' => 'page.php?ch='.$row['chapter_id'], //TODO FIXME chapter_sef support + 'link_url' => e107::getUrl()->create('page/chapter/index', $row), // 'page.php?ch='.$row['chapter_id'], 'link_description' => '', 'link_button' => $row['chapter_icon'], 'link_category' => '', @@ -199,8 +199,7 @@ class page_sitelink // include plugin-folder in the name. $arr[] = array( 'link_id' => $row['chapter_id'], 'link_name' => $row['chapter_name'], - //TODO SEFURLS using chapter_sef. - 'link_url' => ($row['chapter_parent'] == 0) ? 'page.php?bk='.$row['chapter_id'] : 'page.php?ch='.$row['chapter_id'], + 'link_url' => ($row['chapter_parent'] == 0) ? e107::getUrl()->create('page/book/index', $row) : e107::getUrl()->create('page/chapter/index', $row), // ,'page.php?bk='.$row['chapter_id'] : 'page.php?ch='.$row['chapter_id'], // 'link_url' => vartrue($row['chapter_sef'],'#'), 'link_description' => '',