diff options
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r-- | inc/parser/xhtml.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 36bfb1e02..71282bd17 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -678,17 +678,14 @@ class Doku_Renderer_XHTML extends Doku_Renderer { list($ext,$mime) = mimetype($src); if(substr($mime,0,5) == 'image'){ //add image tag - $ret .= '<img class="media" src="'. - DOKU_BASE.'fetch.php?w='.$width.'&h='.$height. + $ret .= '<img src="'.DOKU_BASE.'fetch.php?w='.$width.'&h='.$height. '&cache='.$cache.'&media='.urlencode($src).'"'; + + $ret .= ' class="media'.$align.'"'; if (!is_null($title)) $ret .= ' title="'.$this->__xmlEntities($title).'"'; - - if (!is_null($align)) - $ret .= ' align="'.$align.'"'; #FIXME use class! - if ( !is_null($width) ) $ret .= ' width="'.$this->__xmlEntities($width).'"'; |