]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/CGI.pm
remove another commit mail mention
[ikiwiki.git] / IkiWiki / CGI.pm
index c8c1b63dd5c63d37b4e1854ed58a673920f296f5..1ec23df68c4075788a4d301bd83c14277cba7876 100644 (file)
@@ -526,7 +526,7 @@ sub cgi_editpage ($$) { #{{{
 
                        # Prevent deadlock with post-commit hook by
                        # signaling to it that it should not try to
-                       # do anything (except send commit mails).
+                       # do anything.
                        disable_commit_hook();
                        $conflict=rcs_commit($file, $message,
                                $form->field("rcsinfo"),
@@ -539,10 +539,6 @@ 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();
 
@@ -616,6 +612,7 @@ sub cgi (;$$) { #{{{
        
        # Need to lock the wiki before getting a session.
        lockwiki();
+       loadindex();
        
        if (! $session) {
                $session=cgi_getsession($q);