Skip to content

Commit e969e0f

Browse files
committed
6.1.3 release (small renaming done and label bug fixed)
1 parent a026614 commit e969e0f

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

Models/FAQ/FAQsObserver.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ public function getTrustedDropdownOptionsHTML($paramSelectedFAQ_Id = -1, $paramD
9191
{
9292
$objFAQ = new FAQ($this->conf, $this->lang, $this->settings, $faqId);
9393
$faqDetails = $objFAQ->getDetails();
94-
$question = $paramTranslated ? $faqDetails['translated_question'] : $faqDetails['question'];
94+
$faqQuestion = $paramTranslated ? $faqDetails['translated_faq_question'] : $faqDetails['faq_question'];
9595

9696
if($faqDetails['faq_id'] == $paramSelectedFAQ_Id)
9797
{
98-
$retHTML .= '<option value="'.esc_attr($faqDetails['faq_id']).'" selected="selected">'.esc_html($question).'</option>';
98+
$retHTML .= '<option value="'.esc_attr($faqDetails['faq_id']).'" selected="selected">'.esc_html($faqQuestion).'</option>';
9999
} else
100100
{
101-
$retHTML .= '<option value="'.esc_attr($faqDetails['faq_id']).'">'.esc_html($question).'</option>';
101+
$retHTML .= '<option value="'.esc_attr($faqDetails['faq_id']).'">'.esc_html($faqQuestion).'</option>';
102102
}
103103
}
104104

@@ -119,24 +119,24 @@ public function getTrustedAdminListHTML()
119119
$objFAQ = new FAQ($this->conf, $this->lang, $this->settings, $faqId);
120120
$faqDetails = $objFAQ->getDetails();
121121

122-
$questionHMTL = esc_html($faqDetails['translated_faq_question']);
122+
$faqQuestionHMTL = esc_html($faqDetails['translated_faq_question']);
123123
if($this->lang->canTranslateSQL())
124124
{
125-
$questionHMTL .= '<br />-------------------------------<br />';
126-
$questionHMTL .= '<span class="not-translated" title="'.$this->lang->escAttr('LANG_WITHOUT_TRANSLATION_TEXT').'">('.esc_html($faqDetails['faq_question']).')</span>';
125+
$faqQuestionHMTL .= '<br />-------------------------------<br />';
126+
$faqQuestionHMTL .= '<span class="not-translated" title="'.$this->lang->escAttr('LANG_WITHOUT_TRANSLATION_TEXT').'">('.esc_html($faqDetails['faq_question']).')</span>';
127127
}
128128

129-
$answerHTML = esc_br_html($faqDetails['translated_faq_answer']);
129+
$faqAnswerHTML = esc_br_html($faqDetails['translated_faq_answer']);
130130
if($this->lang->canTranslateSQL())
131131
{
132-
$answerHTML .= '<br />-------------------------------<br />';
133-
$answerHTML .= '<span class="not-translated" title="'.$this->lang->escAttr('LANG_WITHOUT_TRANSLATION_TEXT').'">('.esc_br_html($faqDetails['faq_answer']).')</span>';
132+
$faqAnswerHTML .= '<br />-------------------------------<br />';
133+
$faqAnswerHTML .= '<span class="not-translated" title="'.$this->lang->escAttr('LANG_WITHOUT_TRANSLATION_TEXT').'">('.esc_br_html($faqDetails['faq_answer']).')</span>';
134134
}
135135

136136
$retHTML .= '<tr>';
137137
$retHTML .= '<td>'.esc_html($faqId).'</td>';
138-
$retHTML .= '<td>'.$questionHMTL.'</td>';
139-
$retHTML .= '<td>'.$answerHTML.'</td>';
138+
$retHTML .= '<td>'.$faqQuestionHMTL.'</td>';
139+
$retHTML .= '<td>'.$faqAnswerHTML.'</td>';
140140
$retHTML .= '<td style="text-align: center">'.esc_html($faqDetails['faq_order']).'</td>';
141141
$retHTML .= '<td align="right">';
142142
if(current_user_can('manage_'.$this->conf->getPluginPrefix().'all_faqs'))

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ to your website's FAQ page and make automatically expand specific FAQ with a pag
111111
= 6.1.3 =
112112
* Redirection bug fixed for updating the plugin from plugins page.
113113
* Left-over CSS classes and PHP code removed.
114+
* Small minor label bug fixed and small renaming done.
114115

115116
= 6.1.2 =
116117
* Fixed wrong admin JS filename issue.

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ to your website's FAQ page and make automatically expand specific FAQ with a pag
103103
= 6.1.3 =
104104
* Redirection bug fixed for updating the plugin from plugins page.
105105
* Left-over CSS classes and PHP code removed.
106+
* Small minor label bug fixed and small renaming done.
106107

107108
= 6.1.2 =
108109
* Fixed wrong admin JS filename issue.

0 commit comments

Comments
 (0)