Skip to content

Commit

Permalink
added support for indexable flag
Browse files Browse the repository at this point in the history
git-svn-id: file:///usr/local/webapps/svn/wsg/TRUNK_OPEN@39915 6e4f3189-35f9-0310-b3ef-d16b6aaee2c9
  • Loading branch information
Mark Heiman authored and willylee committed Dec 31, 2013
1 parent f3c165b commit 9956f0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reason_4.0/lib/core/minisite_templates/default.php
Expand Up @@ -659,7 +659,10 @@ function get_meta_information()
$this->head_items->add_head_item('meta',array('name'=>'keywords','content'=>$content) );
}

if (!empty( $_REQUEST['no_search'] ) || $this->site_info->get_value('site_state') != 'Live' || ( defined('THIS_IS_A_DEVELOPMENT_REASON_INSTANCE') && THIS_IS_A_DEVELOPMENT_REASON_INSTANCE ) )
if (!empty( $_REQUEST['no_search'] )
|| $this->site_info->get_value('site_state') != 'Live'
|| ( defined('THIS_IS_A_DEVELOPMENT_REASON_INSTANCE') && THIS_IS_A_DEVELOPMENT_REASON_INSTANCE )
|| !$this->cur_page->get_value('indexable'))
{
$this->head_items->add_head_item('meta',array('name'=>'robots','content'=>'none' ) );
}
Expand Down

0 comments on commit 9956f0e

Please sign in to comment.