diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-10-12 03:27:34 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-10-12 03:27:34 +0000 |
commit | 4afa14cc8d3f26f841c92b083355004251d75087 (patch) | |
tree | 99606ff8bf43f5c30f50d191f3593a5ca6a43260 /include/section_init.inc.php | |
parent | 36e0e6e8f1a455367f363048fc1825aebbd67eee (diff) |
- 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
Diffstat (limited to '')
-rw-r--r-- | include/section_init.inc.php | 7 |
1 files changed, 6 insertions, 1 deletions
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); |