X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/9a99c4c6e2228954b27e1e93e2b66c12a74850ac..9e38ba27d1d229bdf04812554efbc5e2e3e53477:/IkiWiki/Plugin/osm.pm

diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm
index 472e26945..27db31af5 100644
--- a/IkiWiki/Plugin/osm.pm
+++ b/IkiWiki/Plugin/osm.pm
@@ -14,7 +14,7 @@ sub import {
 	hook(type => "format", id => "osm", call => \&format);
 	hook(type => "preprocess", id => "osm", call => \&preprocess);
 	hook(type => "preprocess", id => "waypoint", call => \&process_waypoint);
-	hook(type => "savestate", id => "waypoint", call => \&savestate);
+	hook(type => "changes", id => "waypoint", call => \&changes);
 	hook(type => "cgi", id => "osm", call => \&cgi);
 }
 
@@ -233,7 +233,7 @@ sub get_tag_icon($) {
 	my $tag = shift;
 	# look for an icon attached to the tag
 	my $attached = $tag . '/' . $config{'osm_tag_default_icon'};
-	if (srcfile($attached)) {
+	if (srcfile($attached, 1)) {
 		return $attached;
 	}
 	else {
@@ -280,7 +280,7 @@ sub scrub_lonlat($$$) {
 	return ($lon, $lat);
 }
 
-sub savestate {
+sub changes {
 	my %waypoints = ();
 	my %linestrings = ();