From: Antoine Beaupré Date: Sat, 3 Mar 2012 20:38:01 +0000 (-0500) Subject: properly link to javascript underlay X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=733e9b454e6fc016a36874f81392bdf7c2017f9a;p=ikiwiki.git properly link to javascript underlay --- 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"; }