Skip to content

Commit

Permalink
fix(wizard): use constant
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jan 18, 2021
1 parent 114f6d1 commit bb326eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ public function showFormList(int $rootCategory = 0, string $keywords = '', bool
}
}

if (PluginFormcreatorEntityConfig::getUsedConfig('is_kb_separated', Session::getActiveEntity()) != '1') {
if (PluginFormcreatorEntityConfig::getUsedConfig('is_kb_separated', Session::getActiveEntity()) != PluginFormcreatorEntityconfig::CONFIG_KB_DISTINCT) {
// Find FAQ entries
$query_faqs = KnowbaseItem::getListRequest([
'faq' => '1',
Expand Down
2 changes: 1 addition & 1 deletion inc/wizard.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static function header($title) {
echo '<span class="label">'.__('My requests for assistance', 'formcreator').'</span>';
echo '</a></li>';

if (PluginFormcreatorEntityConfig::getUsedConfig('is_kb_separated', Session::getActiveEntity()) == '1') {
if (PluginFormcreatorEntityConfig::getUsedConfig('is_kb_separated', Session::getActiveEntity()) == PluginFormcreatorEntityConfig::CONFIG_KB_DISTINCT) {
echo '<li class="' . ($activeMenuItem == self::MENU_FAQ ? 'plugin_formcreator_selectedMenuItem' : '') . '">';
echo '<a href="' . FORMCREATOR_ROOTDOC.'/front/knowbaseitem.php' . '">';
echo '<span class="fc_list_icon fas fa-question" title="'.__('Knowledge Base', 'formcreator').'"></span>';
Expand Down

0 comments on commit bb326eb

Please sign in to comment.