diff options
Diffstat (limited to 'app/Module/FrequentlyAskedQuestionsModule.php')
| -rw-r--r-- | app/Module/FrequentlyAskedQuestionsModule.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Module/FrequentlyAskedQuestionsModule.php b/app/Module/FrequentlyAskedQuestionsModule.php index 1fd9edfc3c..21ac3ea7e0 100644 --- a/app/Module/FrequentlyAskedQuestionsModule.php +++ b/app/Module/FrequentlyAskedQuestionsModule.php @@ -177,7 +177,7 @@ class FrequentlyAskedQuestionsModule extends AbstractModule implements ModuleMen <div class="col-sm-9"> <input type="text" class="form-control" name="header" id="header" - value="<?= Filter::escapeHtml($header) ?>"> + value="<?= Html::escape($header) ?>"> </div> </div> @@ -187,7 +187,7 @@ class FrequentlyAskedQuestionsModule extends AbstractModule implements ModuleMen </label> <div class="col-sm-9"> - <textarea name="faqbody" id="faqbody" class="form-control html-edit" rows="10"><?= Filter::escapeHtml($faqbody) ?></textarea> + <textarea name="faqbody" id="faqbody" class="form-control html-edit" rows="10"><?= Html::escape($faqbody) ?></textarea> </div> </div> @@ -491,7 +491,7 @@ class FrequentlyAskedQuestionsModule extends AbstractModule implements ModuleMen echo '</td><td>'; echo '<a href="module.php?mod=', $this->getName(), '&mod_action=admin_edit&block_id=', $faq->block_id, '"><i class="fa fa-pencil"></i> ', I18N::translate('Edit'), '</a>'; echo '</td><td>'; - echo '<a href="module.php?mod=', $this->getName(), '&mod_action=admin_delete&block_id=', $faq->block_id, '" onclick="return confirm(\'', I18N::translate('Are you sure you want to delete ā%sā?', Filter::escapeHtml($faq->header)), '\');"><i class="fa fa-trash"></i> ', I18N::translate('Delete'), '</a>'; + echo '<a href="module.php?mod=', $this->getName(), '&mod_action=admin_delete&block_id=', $faq->block_id, '" onclick="return confirm(\'', I18N::translate('Are you sure you want to delete ā%sā?', Html::escape($faq->header)), '\');"><i class="fa fa-trash"></i> ', I18N::translate('Delete'), '</a>'; echo '</td></tr>'; // NOTE: Print the title text of the current item echo '<tr><td colspan="5">'; |
