summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-08-15 21:23:55 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-08-15 21:23:55 +0200
commit5667eb6525051fa45d19dfa20281279c306d70fd (patch)
tree7634e23a17382eef1d3a570d09463f4e7a3a188e /inc/parser/xhtml.php
parent14c3d17d7c7922d6a775d248456f0fd102b57f0e (diff)
downloadrpg-5667eb6525051fa45d19dfa20281279c306d70fd.tar.gz
rpg-5667eb6525051fa45d19dfa20281279c306d70fd.tar.bz2
fixed minor bug introduced yesterday
darcs-hash:20050815192355-7ad00-8ff39d69d48a8c1aa29a78111ff5b7d06a55256e.gz
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index f6e9b7add..112acc91c 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -734,7 +734,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
$link['title'] = $this->_xmlEntities($src);
list($ext,$mime) = mimetype($src);
- if(substr($mime,0,5)){
+ if(substr($mime,0,5) == 'image'){
$link['url'] = ml($src,array('id'=>$ID,'cache'=>$cache),false);
}else{
$link['url'] = ml($src,array('id'=>$ID,'cache'=>$cache),true);