@@ -497,7 +497,7 @@ discard block |
||
| 497 | 497 | 'dir' => $PMF_LANG['dir'], |
| 498 | 498 | 'writeSendAdress' => '?'.$sids.'action=search', |
| 499 | 499 | 'searchBox' => $PMF_LANG['msgSearch'], |
| 500 | - 'categoryId' => ($cat === 0) ? '%' : (int) $cat, |
|
| 500 | + 'categoryId' => ($cat === 0) ? '%' : (int)$cat, |
|
| 501 | 501 | 'showInstantResponse' => '', // @deprecated |
| 502 | 502 | 'headerCategories' => $PMF_LANG['msgFullCategories'], |
| 503 | 503 | 'msgCategory' => $PMF_LANG['msgCategory'], |
@@ -544,7 +544,7 @@ discard block |
||
| 544 | 544 | array( |
| 545 | 545 | 'writeSendAdress' => '?'.$sids.'action=search', |
| 546 | 546 | 'searchBox' => $PMF_LANG['msgSearch'], |
| 547 | - 'categoryId' => ($cat === 0) ? '%' : (int) $cat, |
|
| 547 | + 'categoryId' => ($cat === 0) ? '%' : (int)$cat, |
|
| 548 | 548 | 'msgSearch' => sprintf( |
| 549 | 549 | '<a class="help" href="%sindex.php?action=search">%s</a>', |
| 550 | 550 | $faqSystem->getSystemUri($faqConfig), |
@@ -579,7 +579,7 @@ discard block |
||
| 579 | 579 | 'allCategories' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'showcat.html">'.$PMF_LANG['msgShowAllCategories'].'</a>', |
| 580 | 580 | 'faqOverview' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'overview.html">'.$PMF_LANG['faqOverview'].'</a>', |
| 581 | 581 | 'showSitemap' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'sitemap/A/'.$LANGCODE.'.html">'.$PMF_LANG['msgSitemap'].'</a>', |
| 582 | - 'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.html', ); |
|
| 582 | + 'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.html',); |
|
| 583 | 583 | } else { |
| 584 | 584 | $tplNavigation = array( |
| 585 | 585 | 'msgSearch' => '<a href="index.php?'.$sids.'action=search">'.$PMF_LANG['msgAdvancedSearch'].'</a>', |
@@ -593,7 +593,7 @@ discard block |
||
| 593 | 593 | 'faqOverview' => '<a href="index.php?'.$sids.'action=overview">'.$PMF_LANG['faqOverview'].'</a>', |
| 594 | 594 | 'backToHome' => '<a href="index.php?'.$sids.'">'.$PMF_LANG['msgHome'].'</a>', |
| 595 | 595 | 'showSitemap' => '<a href="index.php?'.$sids.'action=sitemap&lang='.$LANGCODE.'">'.$PMF_LANG['msgSitemap'].'</a>', |
| 596 | - 'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.php', ); |
|
| 596 | + 'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.php',); |
|
| 597 | 597 | } |
| 598 | 598 | |
| 599 | 599 | $tplNavigation['faqHome'] = $faqConfig->getDefaultUrl(); |
@@ -607,12 +607,12 @@ discard block |
||
| 607 | 607 | // |
| 608 | 608 | // Hide "Add new FAQ" and "Add Question" from navigation if user does not have permission |
| 609 | 609 | // |
| 610 | -if(!$faqConfig->get('records.allowNewFaqsForGuests') && |
|
| 610 | +if (!$faqConfig->get('records.allowNewFaqsForGuests') && |
|
| 611 | 611 | !$user->perm->checkRight($user->getUserId(), 'addfaq')) |
| 612 | 612 | { |
| 613 | 613 | $tplNavigation['msgAddContent'] = ''; |
| 614 | 614 | } |
| 615 | -if(!$faqConfig->get('records.allowQuestionsForGuests') && |
|
| 615 | +if (!$faqConfig->get('records.allowQuestionsForGuests') && |
|
| 616 | 616 | !$user->perm->checkRight($user->getUserId(), 'addquestion')) |
| 617 | 617 | { |
| 618 | 618 | $tplNavigation['msgQuestion'] = ''; |
@@ -708,7 +708,7 @@ discard block |
||
| 708 | 708 | ); |
| 709 | 709 | } else { |
| 710 | 710 | $tpl->parseBlock('rightBox', 'latestEntriesListError', array( |
| 711 | - 'errorMsgLatest' => $latestEntriesParams['error'], ) |
|
| 711 | + 'errorMsgLatest' => $latestEntriesParams['error'],) |
|
| 712 | 712 | ); |
| 713 | 713 | } |
| 714 | 714 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | $captchaHelper = new PMF_Helper_Captcha($faqConfig); |
| 68 | 68 | |
| 69 | 69 | |
| 70 | -if(!$faqConfig->get('records.allowNewFaqsForGuests') && |
|
| 70 | +if (!$faqConfig->get('records.allowNewFaqsForGuests') && |
|
| 71 | 71 | !$user->perm->checkRight($user->getUserId(), 'addfaq')) { |
| 72 | 72 | $tpl->parseBlock( |
| 73 | 73 | 'writeContent', |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | |
| 56 | 56 | $captchaHelper = new PMF_Helper_Captcha($faqConfig); |
| 57 | 57 | |
| 58 | -if(!$faqConfig->get('records.allowNewFaqsForGuests') && |
|
| 58 | +if (!$faqConfig->get('records.allowNewFaqsForGuests') && |
|
| 59 | 59 | !$user->perm->checkRight($user->getUserId(), 'addquestion')) { |
| 60 | 60 | $tpl->parseBlock( |
| 61 | 61 | 'writeContent', |