diff options
author | rvelices <rv-github@modusoptimus.com> | 2014-03-23 05:38:05 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2014-03-23 05:38:05 +0000 |
commit | f46b85bc856b06996f347cb86b86a19e5d462391 (patch) | |
tree | 361c882a533f73f54de34d797e89aec7eeee3de3 /index.php | |
parent | 5f040d9d73ec401feaa6ae3ed97b6e9bf3ee6fff (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | index.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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'] ); |