summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorKazutaka Miyasaka <kazmiya@gmail.com>2009-11-15 14:13:28 +0100
committerKazutaka Miyasaka <kazmiya@gmail.com>2009-11-15 14:13:28 +0100
commitd9baf1a70bff3db65f4443658c00eae23ad11c8a (patch)
tree97dfbdb5f6a1e3c83dca5f8793e260cd45f8af3f /inc/parser
parent0d67055cfede37804a2ad231c821d87ea6bc4e3e (diff)
downloadrpg-d9baf1a70bff3db65f4443658c00eae23ad11c8a.tar.gz
rpg-d9baf1a70bff3db65f4443658c00eae23ad11c8a.tar.bz2
fixed a bug of image links with relative mediaID FS#1775
Ignore-this: d1798348ca669a3471f33b501f6b1aa darcs-hash:20091115131328-9b77a-9f24277aba89ddc4c8dca30edacaeeb44f29e628.gz
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 54177d8c3..4d5333f7a 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -1087,6 +1087,15 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
* @author Andreas Gohr <andi@splitbrain.org>
*/
function _imageTitle($img) {
+ global $ID;
+
+ // some fixes on $img['src']
+ // see internalmedia() and externalmedia()
+ list($img['src'],$hash) = explode('#',$img['src'],2);
+ if ($img['type'] == 'internalmedia') {
+ resolve_mediaid(getNS($ID),$img['src'],$exists);
+ }
+
return $this->_media($img['src'],
$img['title'],
$img['align'],