diff options
-rw-r--r-- | include/menubar.inc.php | 5 | ||||
-rw-r--r-- | index.php | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/menubar.inc.php b/include/menubar.inc.php index 07ca96bcb..8f5d8eb49 100644 --- a/include/menubar.inc.php +++ b/include/menubar.inc.php @@ -40,6 +40,11 @@ function initialize_menu() $menu->load_registered_blocks(); $menu->prepare_display(); + if ( $page['section']=='search' and isset($page['qsearch_details']) ) + { + $template->assign('QUERY_SEARCH', htmlspecialchars($page['qsearch_details']['q']) ); + } + //--------------------------------------------------------------- external links if ( ($block=$menu->get_block('mbLinks')) and !empty($conf['links']) ) { @@ -85,11 +85,6 @@ if (count($page['items']) > $page['nb_image_page']) $template->assign('thumb_navbar', $page['navigation_bar'] ); -if ( $page['section']=='search' and isset($page['qsearch_details']) ) -{ - $template->assign('QUERY_SEARCH', htmlspecialchars($page['qsearch_details']['q']) ); -} - // caddie filling :-) if (isset($_GET['caddie'])) { |