From 9b4c1b747f8f3550d55065c618f130085aa2c3c6 Mon Sep 17 00:00:00 2001 From: Harvie Date: Sun, 20 Jun 2010 04:17:47 +0200 Subject: [PATCH] autodetection of image size for inline SVG --- syntax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax.php b/syntax.php index f814a32..c5bd599 100755 --- a/syntax.php +++ b/syntax.php @@ -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) -- 2.30.2