The 'create host' code is now in a separate library so TNAAA can call it.
[cocanwiki.git] / scripts / edit.ml
index e8cc7c5..8fd59fe 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: edit.ml,v 1.13 2004/09/28 10:56:39 rich Exp $
+ * $Id: edit.ml,v 1.14 2004/09/28 11:28:39 rich Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -450,6 +450,9 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid {hostname = hostname} user =
                                `String content])
        model.contents;
 
+      (* Keep the links table in synch. *)
+      Cocanwiki_links.update_links_for_page dbh hostid url;
+
       (* Commit changes to the database. *)
       dbh#commit ();