summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-01-18 23:35:07 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-01-18 23:35:07 +0100
commit44a6b4c75e3c58760356b6fef69dc06562d6bf32 (patch)
tree48d8d380b7cd61be3b7abf36f25e8c96a64cc844
parent5467607fe1ab31b4651d39268695b3eb15e9015f (diff)
downloadrpg-44a6b4c75e3c58760356b6fef69dc06562d6bf32.tar.gz
rpg-44a6b4c75e3c58760356b6fef69dc06562d6bf32.tar.bz2
add rel
darcs-hash:20080118223507-7ad00-3cc83db3fac31917a50378646785a006a03825a2.gz
-rw-r--r--inc/parser/xhtml.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 1b13b9b84..92cfc38ba 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -476,6 +476,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
$class='wikilink1';
} else {
$class='wikilink2';
+ $link['rel']='nofollow';
}
} else {
$class='media';
@@ -873,6 +874,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
if(!empty($link['target'])) $ret .= ' target="'.$link['target'].'"';
if(!empty($link['title'])) $ret .= ' title="'.$link['title'].'"';
if(!empty($link['style'])) $ret .= ' style="'.$link['style'].'"';
+ if(!empty($link['rel'])) $ret .= ' rel="'.$link['rel'].'"';
if(!empty($link['more'])) $ret .= ' '.$link['more'];
$ret .= '>';
$ret .= $link['name'];