autodetection of image size for inline SVG
authorHarvie <tomas@mudrunka.cz>
Sun, 20 Jun 2010 02:17:47 +0000 (04:17 +0200)
committerHarvie <tomas@mudrunka.cz>
Sun, 20 Jun 2010 02:17:47 +0000 (04:17 +0200)
syntax.php

index f814a3270729bfbd8544de3eeef7963f50830d6f..c5bd599e4b683486f9c54fca5c703c96beca054f 100755 (executable)
@@ -56,7 +56,7 @@ class syntax_plugin_svgedit extends DokuWiki_Syntax_Plugin {
 
                                //detect image size for stupid browsers (like firefox) - ugly (fails if svg does not contain information about it's size)
                                $svg_dimensions = '';
-                               preg_match('/width="[0-9]+" height="[0-9]+"/', rawWiki($svg_wiki_page), $_);
+                               preg_match('/width="[0-9]+" height="[0-9]+"/', $data[1].rawWiki($svg_wiki_page), $_);
                                if(isset($_[0])) $svg_dimensions = $_[0];
 
                                //use object tag for stupid browsers (like firefox) - ugly (relies on browser identification)
This page took 0.183203 seconds and 4 git commands to generate.