diff --git a/e107_plugins/faqs/e_sitelink.php b/e107_plugins/faqs/e_sitelink.php index df2f64f72..4006101d3 100644 --- a/e107_plugins/faqs/e_sitelink.php +++ b/e107_plugins/faqs/e_sitelink.php @@ -53,7 +53,7 @@ class faqs_sitelink // include plugin-folder in the name. { $sublinks[] = array( 'link_name' => $tp->toHtml($row['faq_info_title'],'','TITLE'), - 'link_url' => e107::getUrl()->sc('faqs/list/all', array('category' => $row['faq_info_id'])), + 'link_url' => e107::url('faqs', 'category', $row), 'link_description' => $row['faq_info_about'], 'link_button' => $row['faq_info_icon'], 'link_category' => '', diff --git a/e107_plugins/faqs/faqs.php b/e107_plugins/faqs/faqs.php index 816c477dc..df1e46b6d 100644 --- a/e107_plugins/faqs/faqs.php +++ b/e107_plugins/faqs/faqs.php @@ -19,7 +19,7 @@ if (!defined('e107_INIT')) require_once("../../class2.php"); } -if(file_exists(e_PLUGIN."faqs/controllers/list.php")) +if(file_exists(e_PLUGIN."faqs/controllers/list.php")) // bc for old controller. { $url = e107::getUrl()->create('faqs/list/all', false, 'full=1&noencode=1'); header('Location: '.$url); diff --git a/e107_plugins/faqs/faqs_shortcodes.php b/e107_plugins/faqs/faqs_shortcodes.php index f4785ff8c..4ec493c97 100644 --- a/e107_plugins/faqs/faqs_shortcodes.php +++ b/e107_plugins/faqs/faqs_shortcodes.php @@ -108,7 +108,7 @@ class faqs_shortcodes extends e_shortcode function sc_faq_question_link($parm='') { $tp = e107::getParser(); - return " $this->var['faq_id']))."' >".$tp -> toHTML($this->var['faq_question'],true,'TITLE').""; + return "var)."' >".$tp -> toHTML($this->var['faq_question'],true,'TITLE').""; } function sc_faq_answer() @@ -149,7 +149,8 @@ class faqs_shortcodes extends e_shortcode $urlparms = array(); if($this->category) $urlparms['category'] = $this->category; $urlparms['tag'] = $tag; - $url = e107::getUrl()->create('faqs/list/all', $urlparms); + // $url = e107::getUrl()->create('faqs/list/all', $urlparms); + $url = e107::url('faqs', 'tag', $urlparms); if($parm == 'url') return $url; return ''.$tag.''; @@ -206,7 +207,7 @@ class faqs_shortcodes extends e_shortcode function sc_faq_caturl() { - return e107::getUrl()->create('faqs/list/all', array('category' => $this->var['faq_info_id'])); + return e107::url('faqs', 'category', $this->var); }