projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7eca43
)
load index file in osm cgi hook
author
Joey Hess
<joey@kitenet.net>
Sun, 18 Mar 2012 19:54:47 +0000
(15:54 -0400)
committer
Joey Hess
<joey@kitenet.net>
Sun, 18 Mar 2012 19:54:47 +0000
(15:54 -0400)
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!
IkiWiki/Plugin/osm.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/osm.pm
b/IkiWiki/Plugin/osm.pm
index be499495c4f7e65722773c73974b12e8eba3fcb2..41202b4efe332a6729240427aeedc2f9e7993630 100644
(file)
--- 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);