(* 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
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 r dbh hostid page;
PGOCaml.commit dbh;