1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

FAQs GUI Tweaks

This commit is contained in:
Cameron
2013-03-10 03:47:48 -07:00
parent a8c2640ec1
commit 2d363f185c
2 changed files with 15 additions and 7 deletions

View File

@@ -76,10 +76,12 @@ class plugin_faqs_list_controller extends eControllerFront
$sc = e107::getScBatch('faqs', true);
$text = $tp->parseTemplate($FAQ_START, true);
$sc->counter = 1;
while ($rw = $sql->db_Fetch())
{
$sc->setVars($rw);
if($rw['faq_info_order'] != $prevcat)
{
if($prevcat !='')
@@ -93,7 +95,7 @@ class plugin_faqs_list_controller extends eControllerFront
$text .= $tp->parseTemplate($FAQ_LISTALL['item'], true);
$prevcat = $rw['faq_info_order'];
$sc->counter++;
}
$text .= $tp->parseTemplate($FAQ_LISTALL['end'], true);
$text .= $tp->parseTemplate($FAQ_END, true);