load/save index when rendering a page in cgi mode for svn-less wikis
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 14 Mar 2006 05:37:34 +0000 (05:37 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 14 Mar 2006 05:37:34 +0000 (05:37 +0000)
doc/bugs.mdwn
ikiwiki

index 3fbdadd45e327079d3c8e10948313674608461fb..c9b175453dd3c81714cc50cb9bfc64729c94bf9b 100644 (file)
@@ -20,5 +20,3 @@
   replaced with a link to the [[CGI]]?
 * [[ikiwiki]] should go to the same place as [[index]] (on this wiki).
 * There's no way to escape a [[WikiLink]] when discussing one on a wiki.
-* Seems to be losing track of just-created pages and not adding them to the
-  index.
diff --git a/ikiwiki b/ikiwiki
index 7e140bbecc86b6bcbf85cff2dbeadcaa4aec1709..7794113f5e4c50c27aeea8e4f3e2f4fe31ddb24f 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -1096,7 +1096,9 @@ sub cgi_editpage ($$) { #{{{
                        rcs_commit($message);
                }
                else {
+                       loadindex();
                        refresh();
+                       saveindex();
                }
                
                # The trailing question mark tries to avoid broken