diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-10-08 09:40:29 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-10-08 09:40:29 +0200 |
commit | 8c12804991c564aafbb2508e473d7a915947d982 (patch) | |
tree | 8f8c427ae2b82be945cbfcdedb74df188d7e07b5 /inc/parser | |
parent | 6afe8dca1f7bd2a9ca21fb2dca6fef12ded423e1 (diff) | |
download | rpg-8c12804991c564aafbb2508e473d7a915947d982.tar.gz rpg-8c12804991c564aafbb2508e473d7a915947d982.tar.bz2 |
fixed images in email links
darcs-hash:20061008074029-7ad00-8457873dd8ad2f5a36dc8f44eca42a4378e61e93.gz
Diffstat (limited to 'inc/parser')
-rw-r--r-- | inc/parser/xhtml.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index c56367f47..4e8927679 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -672,8 +672,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $link['style'] = ''; $link['more'] = ''; - //we just test for image here - we need to encode the title our self - $this->_getLinkTitle($name, $address, $isImage); + $name = $this->_getLinkTitle($name, $address, $isImage); if ( !$isImage ) { $link['class']='mail JSnocheck'; } else { @@ -683,11 +682,13 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $address = $this->_xmlEntities($address); $address = obfuscate($address); $title = $address; + if(empty($name)){ $name = $address; - }else{ - $name = $this->_xmlEntities($name); } +#elseif($isImage{ +# $name = $this->_xmlEntities($name); +# } if($conf['mailguard'] == 'visible') $address = rawurlencode($address); |