summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-01-19 20:00:49 +0100
committerandi <andi@splitbrain.org>2005-01-19 20:00:49 +0100
commita31ab7a2d0af0d29ce0a6895e7b3242e1ce1287d (patch)
treeb6a04daf8ff58468b6a99605cce63f1b3f7726e1
parent97ec4e01c319fba41762fa808193ad0100eee9b0 (diff)
downloadrpg-a31ab7a2d0af0d29ce0a6895e7b3242e1ce1287d.tar.gz
rpg-a31ab7a2d0af0d29ce0a6895e7b3242e1ce1287d.tar.bz2
noindex,nofollow on old revisions (Task #65)
darcs-hash:20050119190049-9977f-795695564faec0be3654137ea1e2ae51c9472455.gz
-rw-r--r--inc/html.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php
index 072d36415..97a0c091b 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -174,6 +174,7 @@ function html_head(){
global $ID;
global $ACT;
global $INFO;
+ global $REV;
global $conf;
global $lang;
@@ -197,7 +198,7 @@ function html_head(){
<link rel="alternate" type="text/html" title="Plain HTML" href="<?=wl($ID,'do=export_html')?>" />
<link rel="alternate" type="text/plain" title="Wiki Markup" href="<?=wl($ID, 'do=export_raw')?>" />
<?
- if($ACT=='show' || $ACT=='export_html'){
+ if( ($ACT=='show' || $ACT=='export_html') && !$REV){
if($INFO['exists']){
print ' <meta name="robots" content="index,follow" />'."\n";
print ' <meta name="date" content="'.date('Y-m-d\TH:i:sO',$INFO['lastmod']).'" />'."\n";