Skip to content
Snippets Groups Projects
Commit b59b2641 authored by JediKev's avatar JediKev
Browse files

issue: Featured FAQs On Disable

This addresses an issue where the client portal shows Featured FAQs on the
sidebar even thought the Knowledgebase is Disabled.
parent 96892beb
Branches
Tags
No related merge requests found
......@@ -19,8 +19,9 @@ $BUTTONS = isset($BUTTONS) ? $BUTTONS : true;
</div>
<?php } ?>
<div class="content"><?php
$faqs = FAQ::getFeatured()->select_related('category')->limit(5);
if ($faqs->all()) { ?>
if ($cfg->isKnowledgebaseEnabled()
&& ($faqs = FAQ::getFeatured()->select_related('category')->limit(5))
&& $faqs->all()) { ?>
<section><div class="header"><?php echo __('Featured Questions'); ?></div>
<?php foreach ($faqs as $F) { ?>
<div><a href="<?php echo ROOT_PATH; ?>kb/faq.php?id=<?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment