From 565d76ee896f895d706d37de3ebcfafaa33a8004 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 4 Apr 2015 19:05:29 -0700 Subject: [PATCH] FAQs now works with the linkwords plugin. --- e107_plugins/faqs/faqs_shortcodes.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e107_plugins/faqs/faqs_shortcodes.php b/e107_plugins/faqs/faqs_shortcodes.php index 3f5e84655..50b86a0ed 100644 --- a/e107_plugins/faqs/faqs_shortcodes.php +++ b/e107_plugins/faqs/faqs_shortcodes.php @@ -47,14 +47,14 @@ class faqs_shortcodes extends e_shortcode $tags = "
".LAN_FAQS_TAGS.": ".$this->sc_faq_tags()."
"; } $id = "faq_".$this->var['faq_id']; - $text = "".$tp->toHTML($this->var['faq_question'],true)." -
".$tp->toHTML($this->var['faq_answer'],TRUE).$tags."
+ $text = "".$tp->toHTML($this->var['faq_question'],true,'TITLE')." +
".$tp->toHTML($this->var['faq_answer'],true,'BODY').$tags."
"; } else { - $text = $tp->toHTML($this->var['faq_question'],true); + $text = $tp->toHTML($this->var['faq_question'],true, 'TITLE'); } return $text; } @@ -62,7 +62,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']).""; + return " $this->var['faq_id']))."' >".$tp -> toHTML($this->var['faq_question'],true,'TITLE').""; } function sc_faq_answer()