fix links to sparklines; abs2rel -> urlto
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 1 Apr 2007 20:25:27 +0000 (20:25 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 1 Apr 2007 20:25:27 +0000 (20:25 +0000)
IkiWiki/Plugin/sparkline.pm
debian/NEWS

index 425b9826b1ced0704480dcc12ea42bd7a74987c3..06036867970eb5656a3b23cc44ef4683b95e221f 100644 (file)
@@ -156,9 +156,7 @@ sub preprocess (@) { #{{{
                }
        }
 
-       return '<img src="'.
-               IkiWiki::abs2rel($fn, IkiWiki::dirname($params{destpage})).
-               '" alt="graph" />';
+       return '<img src="'.urlto($fn, $params{destpage}).'" alt="graph" />';
 } # }}}
 
 1
index 7ceca5f0abec35a2736165ea199b8893269ae20c..9e821668d55f1bb8702dcf7d87fc53e6edeafc7d 100644 (file)
@@ -1,7 +1,7 @@
 ikiwiki (1.49) unstable; urgency=low
 
-  Third-party plugins that use htmlpage() may need changes to support the
-  new "userdir" option.
+  Third-party plugins that use htmlpage() or abs2rel() to generate links
+  may need changes to support the new "userdir" option.
 
  -- Joey Hess <joeyh@debian.org>  Sun, 01 Apr 2007 16:20:09 -0400