About half way through switching cocanwiki to using the new PG interface.
[cocanwiki.git] / scripts / undelete_file.ml
index 0f751e2..01e5d53 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: undelete_file.ml,v 1.6 2004/09/09 12:21:22 rich Exp $
+ * $Id: undelete_file.ml,v 1.7 2005/11/24 14:54:13 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
@@ -62,7 +62,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
     (* Done. *)
     let buttons = [ ok_button "/_files" ] in
     ok ~title:"File restored" ~buttons
-      q "File was restored successfully."
+      dbh hostid q "File was restored successfully."
   ) else
     q#redirect ("http://" ^ hostname ^ "/_files")