]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/CGI.pm
* Add a calendar plugin, contributed by Manoj Srivastava.
[git.ikiwiki.info.git] / IkiWiki / CGI.pm
index 155010a97e6d606a1fff8af7b85ff93aef8fc0f5..788d0487e1012d3d6fe4dd8359200e99bf186e15 100644 (file)
@@ -596,6 +596,10 @@ sub cgi_editpage ($$) { #{{{
                # may have been committed while the post-commit hook was
                # disabled.
                require IkiWiki::Render;
                # may have been committed while the post-commit hook was
                # disabled.
                require IkiWiki::Render;
+               # Reload index, since the first time it's loaded is before
+               # the wiki is locked, and things may have changed in the
+               # meantime.
+               loadindex();
                refresh();
                saveindex();
 
                refresh();
                saveindex();