aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-03-18 15:54:47 -0400
committerJoey Hess <joey@kitenet.net>2012-03-18 15:54:47 -0400
commit3867f038a79784119e67ad36a191b64d2f574a3b (patch)
treeae3093eeebbbb73d1577c143fd3aa1ca089eaea3 /IkiWiki
parentd7eca43103a47f0184edb65e2bcf4240f795e3c6 (diff)
downloadikiwiki-3867f038a79784119e67ad36a191b64d2f574a3b.tar
ikiwiki-3867f038a79784119e67ad36a191b64d2f574a3b.tar.gz
load index file in osm cgi hook
This hook involves urlto, and that needs to have state loaded to work in all situations. Note that I can see no reason for the osm plugin to use a cgi hook at all. This could just as well be a static html page!
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/osm.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm
index be499495c..41202b4ef 100644
--- a/IkiWiki/Plugin/osm.pm
+++ b/IkiWiki/Plugin/osm.pm
@@ -521,6 +521,8 @@ sub cgi($) {
return unless defined $cgi->param('do') &&
$cgi->param("do") eq "osm";
+
+ IkiWiki::loadindex();
IkiWiki::decode_cgi_utf8($cgi);