From f46b85bc856b06996f347cb86b86a19e5d462391 Mon Sep 17 00:00:00 2001 From: rvelices Date: Sun, 23 Mar 2014 05:38:05 +0000 Subject: bug 3056: quick search - added inflectors for english and french languages - current quick search is kept in the quick search input box - small fixes git-svn-id: http://piwigo.org/svn/trunk@27884 68402e56-0260-453c-a942-63ccdbb3a9ee --- index.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index c6ce22f56..9e58d2123 100644 --- a/index.php +++ b/index.php @@ -85,6 +85,11 @@ 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'])) { @@ -218,9 +223,6 @@ if ( empty($page['is_external']) or !$page['is_external'] ) if ( $page['section']=='search' and $page['start']==0 and !isset($page['chronology_field']) and isset($page['qsearch_details']) ) { - $template->assign('QUERY_SEARCH', - htmlspecialchars($page['qsearch_details']['q']) ); - $cats = array_merge( (array)@$page['qsearch_details']['matching_cats_no_images'], (array)@$page['qsearch_details']['matching_cats'] ); -- cgit v1.2.3