aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/linkmap.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-03-23 20:01:26 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-03-23 20:01:26 -0400
commitcb8d1c86425999eb3572326679fae9a033664150 (patch)
tree08cea19c0f50b5cc76d68895b0a945e724fe14a7 /IkiWiki/Plugin/linkmap.pm
parentd2911a20a6913e46035a8731acafba6faf5997f9 (diff)
downloadikiwiki-cb8d1c86425999eb3572326679fae9a033664150.tar
ikiwiki-cb8d1c86425999eb3572326679fae9a033664150.tar.gz
revert destpage part of f7bdc2385
destpage does not normally need to be worried about when creating other files as part of the process of rendering a page. Using destpage results in inlined pages creating two copies of such files. It works to not use destpage in this case because the inlining page depends on the source page, so if the source page is modified or deleted the inlining page will be updated.
Diffstat (limited to 'IkiWiki/Plugin/linkmap.pm')
-rw-r--r--IkiWiki/Plugin/linkmap.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/linkmap.pm b/IkiWiki/Plugin/linkmap.pm
index 5b87277ac..82b38f4cb 100644
--- a/IkiWiki/Plugin/linkmap.pm
+++ b/IkiWiki/Plugin/linkmap.pm
@@ -53,11 +53,11 @@ sub genmap ($) { #{{{
}
}
- my $dest=$params{destpage}."/linkmap.png";
+ my $dest=$params{page}."/linkmap.png";
# Use ikiwiki's function to create the file, this makes sure needed
# subdirs are there and does some sanity checking.
- will_render($params{destpage}, $dest);
+ will_render($params{page}, $dest);
writefile($dest, $config{destdir}, "");
# Run dot to create the graphic and get the map data.
@@ -86,7 +86,7 @@ sub genmap ($) { #{{{
close OUT;
local $/=undef;
- my $ret="<object data=\"".urlto($dest, $params{page}).
+ my $ret="<object data=\"".urlto($dest, $params{destpage}).
"\" type=\"image/png\" usemap=\"#linkmap$mapnum\">\n".
<IN>.
"</object>";