From: joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Date: Sun, 1 Apr 2007 20:25:27 +0000 (+0000)
Subject: fix links to sparklines; abs2rel -> urlto
X-Git-Tag: 1.49~124
X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/6351ae2ac4ffe01aba0733469751be7e058e6e61

fix links to sparklines; abs2rel -> urlto
---

diff --git a/IkiWiki/Plugin/sparkline.pm b/IkiWiki/Plugin/sparkline.pm
index 425b9826b..060368679 100644
--- a/IkiWiki/Plugin/sparkline.pm
+++ b/IkiWiki/Plugin/sparkline.pm
@@ -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
diff --git a/debian/NEWS b/debian/NEWS
index 7ceca5f0a..9e821668d 100644
--- a/debian/NEWS
+++ b/debian/NEWS
@@ -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