Skip to content

Commit

Permalink
Fixed wrong default category value for search box
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed May 2, 2010
1 parent 46d6392 commit eeebeea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions phpmyfaq/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,14 @@
$faqconfig->get('main.currentVersion'));

if ('main' == $action || 'show' == $action) {
if ('main' == $action && PMF_Configuration::getInstance()->get('main.useAjaxSearchOnStartpage')) {
$tpl->processBlock('index', 'globalSuggestBox', array(
'ajaxlanguage' => $LANGCODE,));
} else {
if ('main' == $action && PMF_Configuration::getInstance()->get('main.useAjaxSearchOnStartpage')) {
$tpl->processBlock('index', 'globalSuggestBox', array(
'ajaxlanguage' => $LANGCODE));
} else {
$tpl->processBlock('index', 'globalSearchBox', array(
'writeSendAdress' => '?'.$sids.'action=search',
'searchBox' => $PMF_LANG['msgSearch'],
'categoryId' => $cat));
'categoryId' => ($cat === 0) ? '%' : (int)$cat));
}
}

Expand Down

0 comments on commit eeebeea

Please sign in to comment.