From 733e9b454e6fc016a36874f81392bdf7c2017f9a Mon Sep 17 00:00:00 2001 From: Antoine Beaupré Date: Sat, 3 Mar 2012 15:38:01 -0500 Subject: properly link to javascript underlay --- IkiWiki/Plugin/osm.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm index e85d4be62..d8db01dbb 100644 --- a/IkiWiki/Plugin/osm.pm +++ b/IkiWiki/Plugin/osm.pm @@ -529,7 +529,7 @@ sub include_javascript ($) { } } if ($loader) { - return embed_map_code() . ""; + return embed_map_code($page) . ""; } else { return ''; @@ -553,16 +553,17 @@ sub cgi($) { print ("\r\n"); print ""; print "
"; - print embed_map_code($map); + print embed_map_code(); print ""; print ""; exit 0; } -sub embed_map_code() { +sub embed_map_code(;$) { + my $page=shift; return ''. - ''."\n"; } -- cgit v1.2.3