aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-05-04 20:44:41 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-05-04 20:44:41 +0200
commitfcf1ccdc348e155e30dee159a25c69914f60d0d9 (patch)
tree05d71db164473972c73b86d7ce4e01b3957ede11
parent481bd052a0091ae810735a1e3707fa1ce717c70f (diff)
downloaddokuwiki-fcf1ccdc348e155e30dee159a25c69914f60d0d9.tar.gz
dokuwiki-fcf1ccdc348e155e30dee159a25c69914f60d0d9.zip
fix for missing alt attribute for captionless JPEGs FS#1126
darcs-hash:20070504184441-7ad00-47c6f91236a21ed3dbd0b12e4ec0e9c2d717f340.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 e397f5bd7..fad6f6120 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -931,6 +931,8 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
if($cap){
$ret .= ' title="'.$this->_xmlEntities($cap).'"';
$ret .= ' alt="'.$this->_xmlEntities($cap).'"';
+ }else{
+ $ret .= ' alt=""';
}
}else{
$ret .= ' alt=""';