diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-08-07 22:57:38 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-08-07 22:57:38 +0200 |
commit | 7a24876f6626d9c6bcf73824ede7ffa36681421d (patch) | |
tree | 9612f905c5a38879c8de5c0aa0b74a4c4497473f | |
parent | 346cbc555f8a7b078d78cb049dde5f51ec4ae6ce (diff) | |
download | rpg-7a24876f6626d9c6bcf73824ede7ffa36681421d.tar.gz rpg-7a24876f6626d9c6bcf73824ede7ffa36681421d.tar.bz2 |
make image details indexable
darcs-hash:20060807205738-7ad00-5492ba5fe3e854f9dc233254535e4e897847353c.gz
-rw-r--r-- | inc/template.php | 2 | ||||
-rw-r--r-- | lib/exe/detail.php | 1 |
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'); |