aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/section_init.inc.php7
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);