Skip to content
Snippets Groups Projects
Commit c938bef2 authored by Jared Hancock's avatar Jared Hancock
Browse files

Rename kb-categor* to faq-categor*

This will help distinguish between the knowledgebase part which encompasses
FAQ's and canned responses, and the FAQ part which contains the articles
detailing frequently-asked-questions.
parent c80be0b6
Branches
Tags
No related merge requests found
......@@ -126,7 +126,7 @@ class StaffNav {
$subnav[]=array('desc'=>'Knowledgebase','href'=>'kb.php', 'urls'=>array('faq.php'), 'iconclass'=>'kb');
if($staff) {
if($staff->canManageFAQ())
$subnav[]=array('desc'=>'Categories','href'=>'categories.php','iconclass'=>'kb-categories');
$subnav[]=array('desc'=>'Categories','href'=>'categories.php','iconclass'=>'faq-categories');
if($staff->canManageCannedResponses())
$subnav[]=array('desc'=>'Canned Replies','href'=>'canned.php','iconclass'=>'canned');
}
......
......@@ -28,7 +28,7 @@ $inc='knowledgebase.inc.php'; //FAQs landing page.
if($faq && $faq->isPublished()) {
$inc='faq.inc.php';
} elseif($category && $category->isPublic() && $_REQUEST['a']!='search') {
$inc='kb-category.inc.php';
$inc='faq-category.inc.php';
}
require_once(CLIENTINC_DIR.'header.inc.php');
require_once(CLIENTINC_DIR.$inc);
......
......@@ -234,7 +234,7 @@ a.premade { background:url(../images/icons/premade_reply.gif) }
a.newPremade { background:url(../images/icons/new_premade_reply.gif) }
a.kb { background:url(../images/icons/kb.gif) }
a.kb-categories { background:url(../images/icons/kb-categories.gif) }
a.faq-categories { background:url(../images/icons/faq-categories.gif) }
a.canned { background:url(../images/icons/canned.gif) }
a.staff { background:url(../images/icons/list_groups.gif) }
......
File moved
......@@ -19,9 +19,9 @@ $category=null;
if($_REQUEST['cid'] && !($category=Category::lookup($_REQUEST['cid'])))
$errors['err']='Unknown or invalid FAQ category';
$inc='kb-categories.inc.php'; //KB landing page.
$inc='faq-categories.inc.php'; //KB landing page.
if($category && $_REQUEST['a']!='search') {
$inc='kb-category.inc.php';
$inc='faq-category.inc.php';
}
$nav->setTabActive('kbase');
require_once(STAFFINC_DIR.'header.inc.php');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment