From 7a24876f6626d9c6bcf73824ede7ffa36681421d Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Mon, 7 Aug 2006 22:57:38 +0200 Subject: [PATCH] make image details indexable darcs-hash:20060807205738-7ad00-5492ba5fe3e854f9dc233254535e4e897847353c.gz --- inc/template.php | 2 ++ lib/exe/detail.php | 1 + 2 files changed, 3 insertions(+) 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'); -- GitLab