merged anarcat's osm fixes

master
Joey Hess 2012-08-05 22:02:39 -04:00
parent 409c4e48f9
commit d926c4aca9
2 changed files with 11 additions and 1 deletions

4
debian/changelog vendored
View File

@ -4,6 +4,10 @@ ikiwiki (3.20120630) UNRELEASED; urgency=low
in the recentchanges page, with visibility toggleable via javascript.
Thanks, Antoine Beaupré
* Split CFLAGS into words when building wrapper. Closes: #682237
* osm: Avoid calling urlto before generated files are registered.
Thanks, Philippe Gauthier and Antoine Beaupré
* osm: Add osm_openlayers_url configuration setting.
Thanks, Genevieve
-- Joey Hess <joeyh@debian.org> Thu, 19 Jul 2012 13:46:52 -0400

View File

@ -8,10 +8,16 @@ Indeed, that URL yields a 404. The proper URL is <http://mesh.openisp.ca/map/poi
## Proposed solution
The problem seems to be caused by `urlto()` being called for the `osm` directive before the generated files are registered with `will_render()` from the `waypoint` directive. Proposed patch adds a function that is called from the `preprocess` hook for both directives that registers the files.
The problem seems to be caused by `urlto()` being called for the `osm`
directive before the generated files are registered with `will_render()`
from the `waypoint` directive. Proposed patch adds a function that is
called from the `preprocess` hook for both directives that registers the
files.
Here is a [[patch]] to IkiWiki/Plugin/osm.pm: <https://reseaulibre.deuxpi.ca/0000-Fix-incorrect-URL-pointing-to-the-generated-waypoint.patch>
--[[deuxpi]]
I confirm the patch works, and I added it to my master branch. --[[anarcat]]
> [[applied|done]]. Thanks guys. --[[Joey]]