summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-04-17 18:44:02 +0200
committerandi <andi@splitbrain.org>2005-04-17 18:44:02 +0200
commit4329e75216398c9bd5057fbc338d715b699af8e5 (patch)
tree9bf77bcc4042a1d99179e75fbba059bf66859871 /inc/parser/xhtml.php
parent6bbae53816f31e7ad2c6536866674c218c63f6a4 (diff)
downloadrpg-4329e75216398c9bd5057fbc338d715b699af8e5.tar.gz
rpg-4329e75216398c9bd5057fbc338d715b699af8e5.tar.bz2
fixed centered images
darcs-hash:20050417164402-9977f-9adcdfebccd880952ee2c3ee454faccd5383a705.gz
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php9
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.'&amp;h='.$height.
+ $ret .= '<img src="'.DOKU_BASE.'fetch.php?w='.$width.'&amp;h='.$height.
'&amp;cache='.$cache.'&amp;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).'"';