Styling for the 404 page too.
[cocanwiki.git] / scripts / restore.ml
index f7ce475..e41d364 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: restore.ml,v 1.21 2006/03/28 16:24:08 rich Exp $
+ * $Id: restore.ml,v 1.23 2006/07/27 16:46:55 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
@@ -72,13 +72,13 @@ let run r (q : cgi) dbh hostid {hostname = hostname} user =
     let pageid = PGOCaml.serial4 dbh "pages_id_seq" in
 
     PGSQL(dbh) "insert into contents (pageid, ordering,
-                                      sectionname, content, divname)
-                select $pageid, ordering, sectionname, content, divname
+                                      sectionname, content, divname, jsgo)
+                select $pageid, ordering, sectionname, content, divname, jsgo
                   from contents
                  where pageid = $version";
 
     (* Keep the links table in synch. *)
-    Cocanwiki_links.update_links_for_page dbh hostid page;
+    Cocanwiki_links.update_links_for_page dbh hostid page;
 
     PGOCaml.commit dbh;