]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/CGI.pm
web commit by http://ptecza.myopenid.com/: * Reply
[git.ikiwiki.info.git] / IkiWiki / CGI.pm
index c785e31dec166f2d8ef18caaad14e5bdd37a0734..788d0487e1012d3d6fe4dd8359200e99bf186e15 100644 (file)
@@ -506,6 +506,7 @@ sub cgi_editpage ($$) { #{{{
                }
                
                showform($form, \@buttons, $session, $q);
+               saveindex();
        }
        else {
                # save page
@@ -595,6 +596,10 @@ sub cgi_editpage ($$) { #{{{
                # 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();