From affcec8e47790f33c58dd7ecdb3648242ac3fa97 Mon Sep 17 00:00:00 2001 From: Jimako Date: Thu, 13 Jun 2019 15:46:58 +0200 Subject: [PATCH 1/2] fix for working with multilan pref #2822 --- e107_plugins/faqs/faqs_shortcodes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_plugins/faqs/faqs_shortcodes.php b/e107_plugins/faqs/faqs_shortcodes.php index a7466bb33..6f20b8ddc 100644 --- a/e107_plugins/faqs/faqs_shortcodes.php +++ b/e107_plugins/faqs/faqs_shortcodes.php @@ -231,7 +231,7 @@ class faqs_shortcodes extends e_shortcode $customCaption = e107::pref('faqs', 'page_title'); - if(!empty($customCaption)) + if(!empty($customCaption[e_LANGUAGE])) { return e107::getParser()->toHTML($customCaption,true); } From 09ad3944c420b6300e994fe07d5e23a355304719 Mon Sep 17 00:00:00 2001 From: Jimako Date: Thu, 13 Jun 2019 15:50:58 +0200 Subject: [PATCH 2/2] fix for working with multilan pref fix if you use shortcode, but caption for tablerender is loaded on other place --- e107_plugins/faqs/faqs_shortcodes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_plugins/faqs/faqs_shortcodes.php b/e107_plugins/faqs/faqs_shortcodes.php index 6f20b8ddc..1cf6dd0e1 100644 --- a/e107_plugins/faqs/faqs_shortcodes.php +++ b/e107_plugins/faqs/faqs_shortcodes.php @@ -233,7 +233,7 @@ class faqs_shortcodes extends e_shortcode if(!empty($customCaption[e_LANGUAGE])) { - return e107::getParser()->toHTML($customCaption,true); + return e107::getParser()->toHTML($customCaption[e_LANGUAGE],true); } return LAN_PLUGIN_FAQS_FRONT_NAME;