diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-10-16 01:45:26 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-10-16 01:45:26 +0000 |
commit | 0fea35029516c679836ff72d3f8474fbc45b8dc6 (patch) | |
tree | 03014c5ae6a5b7b1e753c14eecc70ab160152896 /include/section_init.inc.php | |
parent | 26d336bd3b8027ec67f30e92c6fc5309060adb3a (diff) |
- fix plugin menu link broken with xamp (realpath behaves differently) (merge from trunk to branch 1_7)
- added some meta_robots (noindex and nofollow) on popuphelp, search_rules and search seaction (googlebot gets crazy)
git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2137 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/section_init.inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 05bc60f29..f80b321a1 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -520,7 +520,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); @@ -534,8 +535,13 @@ elseif ('tags' == $page['section']) } elseif ('recent_cats'==$page['section']) { + $page['meta_robots']['noindex']=1; +} +elseif ('search'==$page['section']) +{ $page['meta_robots']['nofollow']=1; } + if ( $filter['enabled'] ) { $page['meta_robots']['noindex']=1; |