diff --git a/inc/template.php b/inc/template.php index ac24096a31b58e2202c5d3c801b5f8d852063238..f065030430c573d77493317e8cbd4a16c7fde8f7 100644 --- a/inc/template.php +++ b/inc/template.php @@ -196,6 +196,8 @@ function tpl_metaheaders($alt=true){ }else{ ptln('<meta name="robots" content="noindex,follow" />',$it); } + }elseif(defined('DOKU_MEDIADETAIL')){ + ptln('<meta name="robots" content="index,follow" />',$it); }else{ ptln('<meta name="robots" content="noindex,nofollow" />',$it); } diff --git a/lib/exe/detail.php b/lib/exe/detail.php index 2907acfbf10c20f952403b96e57980048488f18a..3a7e6159785b3189e95bd3805dffb0a2a8a61f12 100644 --- a/lib/exe/detail.php +++ b/lib/exe/detail.php @@ -1,5 +1,6 @@ <?php if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/'); + define('DOKU_MEDIADETAIL',1); require_once(DOKU_INC.'inc/init.php'); require_once(DOKU_INC.'inc/common.php'); require_once(DOKU_INC.'inc/lang/en/lang.php');