From 4afa14cc8d3f26f841c92b083355004251d75087 Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 12 Oct 2007 03:27:34 +0000 Subject: - fix plugin menu link broken with xamp (realpath behaves differently) - complete quick search rewriting - now we can quote phrases as in google "New York" is not the same as New York - user comments not searched anymore (faster) - the big full text query does not use joins anymore (faster) - related tags not shown on the index page, but now you can see the matching tags and matching categories git-svn-id: http://piwigo.org/svn/trunk@2135 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/section_init.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/section_init.inc.php') diff --git a/include/section_init.inc.php b/include/section_init.inc.php index f5b301677..a43d5ea0d 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -329,6 +329,10 @@ SELECT DISTINCT(id) else { $page['items'] = $search_result['items']; + if ( isset($search_result['qs']) ) + {//save the details of the query search + $page['qsearch_details'] = $search_result['qs']; + } } $page = array_merge( @@ -519,7 +523,8 @@ SELECT id,file // add meta robots noindex, nofollow to avoid unnecesary robot crawls $page['meta_robots']=array(); -if ( isset($page['chronology_field']) or isset($page['flat']) +if ( isset($page['chronology_field']) + or ( isset($page['flat']) and isset($page['category']) ) or 'list'==$page['section'] or 'recent_pics'==$page['section'] ) { $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1); -- cgit v1.2.3