summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/template.php2
-rw-r--r--lib/exe/detail.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/inc/template.php b/inc/template.php
index ac24096a3..f06503043 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 2907acfbf..3a7e61597 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');